<commit_before>//Module included in the following assemblies:
//
// * installing/installing_openstack/installing-openstack-installer.adoc
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc

[id="installation-osp-creating-image_{context}"]
= Creating the {op-system-first} image

The {product-title} installation program requires that a {op-system-first} image be present in the OpenStack cluster. Retrieve the latest {op-system} image, then upload it using the OpenStack CLI.

.Prerequisites

* The OpenStack CLI is installed.

.Procedure
//Links not valid--release images aren't posted yet.
. Download the latest {op-system} image from the https://access.redhat.com/downloads/content/290[Product Downloads] page of the Red Hat customer portal or the https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.2/[{op-system} image mirror page].

. From the image that you downloaded, create an image that is named `rhcos` to your cluster by using the OpenStack CLI:
+
----
$ openstack image create --container-format=bare --disk-format=qcow2 --file rhcos-${RHCOSVERSION}-openstack.qcow2 rhcos
----
+
[CAUTION]
If the installation program finds multiple images with the same name, it chooses one of them at random. To avoid this behavior, create unique names for resources in OpenStack.
+
[NOTE]
Depending on your OpenStack environment, the image can be in either `qcow2` or `raw` formats. If your environment requires the `raw` format, substitute `raw` for `qcow2` in the preceding example. For more information about image formats, see https://docs.openstack.org/image-guide/image-formats.html[Disk and container formats for images].<commit_msg>OSP: add note about compressed image format<commit_after>//Module included in the following assemblies:
//
// * installing/installing_openstack/installing-openstack-installer.adoc
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc

[id="installation-osp-creating-image_{context}"]
= Creating the {op-system-first} image

The {product-title} installation program requires that a {op-system-first} image be present in the OpenStack cluster. Retrieve the latest {op-system} image, then upload it using the OpenStack CLI.

.Prerequisites

* The OpenStack CLI is installed.

.Procedure
//Links not valid--release images aren't posted yet.
. Download the latest {op-system} image from the https://access.redhat.com/downloads/content/290[Product Downloads] page of the Red Hat customer portal or the https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.2/[{op-system} image mirror page].
+
[NOTE]
The OpenStack QCOW2 images are delivered in compressed format, so you must specify additional options to download them.  With `curl`, specify `curl --compressed -J -L -O <image_url>`.  With `wget`, specify `wget --compression=auto <image_url>`.
+
. From the image that you downloaded, create an image that is named `rhcos` to your cluster by using the OpenStack CLI:
+
----
$ openstack image create --container-format=bare --disk-format=qcow2 --file rhcos-${RHCOSVERSION}-openstack.qcow2 rhcos
----
+
[CAUTION]
If the installation program finds multiple images with the same name, it chooses one of them at random. To avoid this behavior, create unique names for resources in OpenStack.
+
[NOTE]
Depending on your OpenStack environment, the image can be in either `qcow2` or `raw` formats. If your environment requires the `raw` format, substitute `raw` for `qcow2` in the preceding example. For more information about image formats, see https://docs.openstack.org/image-guide/image-formats.html[Disk and container formats for images].
{'fraction_non_alphanumeric': 0.09950118141244421, 'fraction_numerical': 0.005513258072985036, 'mean_word_length': 4.7379518072289155, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1074804', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1057, 'n_words': 399}