Control accepted 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

  1. Open your OpenStackControlPlane CR file, openstack_control_plane.yaml, and add the following parameters to the glance template:
    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 disk formats: none, ami, ari, aki, vhd, vhdx, vmdk, raw, qcow2, vdi, iso, ploop.
  2. Update the control plane:
    $ oc apply -f openstack_control_plane.yaml -n openstack
  3. Wait until RHOCP creates the resources related to the OpenStackControlPlane CR. Run the following command to check the status:
    $ oc get openstackcontrolplane -n openstack

    The OpenStackControlPlane resources are created when the status is "Setup complete".

    Tip
    Append the -w option to the end of the get command to track deployment progress.