6.5. Enabling or rejecting virtual machine image disk formats
You can configure the Image service (glance) to enable or reject disk formats. For example, you can enable only raw and ISO disk formats or reject images in QCOW2 disk format.
Procedure
Open your
OpenStackControlPlaneCR file,openstack_control_plane.yaml, and add the following parameters to theglancetemplate:apiVersion: core.openstack.org/v1beta1 kind: OpenStackControlPlane spec: ... glance: enabled: true template: databaseInstance: openstack databaseUser: glance customServiceConfig: | [image_format] disk_formats=<raw>,<iso> glanceAPIs: ...-
Replace
<raw>and<iso>with the formats you want to enable from the following supported supported disk formats: none, ami, ari, aki, vhd, vhdx, vmdk, raw, qcow2, vdi, iso, ploop.
-
Replace
Update the control plane:
$ oc apply -f openstack_control_plane.yaml -n openstackWait until RHOCP creates the resources related to the
OpenStackControlPlaneCR. Run the following command to check the status:$ oc get openstackcontrolplane -n openstackThe
OpenStackControlPlaneresources are created when the status is "Setup complete".提示Append the
-woption to the end of thegetcommand to track deployment progress.