7.4. Adding an Image service API
You can add a new Image service API (glanceAPI) to a Red Hat OpenStack Services on OpenShift (RHOSO) deployment to support multiple workloads or to maintain the lifecycle of an existing glanceAPI and its back-end services. For example, if your deployment has a back end with a split layout, such as Red Hat Ceph Storage, and a back end with a single layout, such as NFS, you cannot make changes to the single or split layout because they impact configuration elements such as PersistentVolumeClaims (PVCs). Instead, you can add a new glanceAPI to switch between the back ends.
Procedure
Open your
OpenStackControlPlaneCR file,openstack_control_plane.yaml, and add the parameters to theglancetemplate to configure a newglanceAPI. In the following example, there is an existingdefaultAPI that uses the Object Storage service (swift) as a back end, and you update theOpenStackControlPlaneto deploy a newdefault1API:... apiVersion: core.openstack.org/v1beta1 kind: OpenStackControlPlane spec: glance: template: databaseInstance: openstack keystoneEndpoint: default glanceAPIs: default: customServiceConfig: | [DEFAULT] enabled_backends = <backend_name>:swift [glance_store] default_backend = <backend_name> [<backend_name>] swift_store_create_container_on_put = True swift_store_auth_version = 3 swift_store_auth_address = {{ .KeystoneInternalURL }} swift_store_endpoint_type = internalURL swift_store_user = service:glance swift_store_key = {{ .ServicePassword }} preserveJobs: false replicas: 3 default1: type: single replicas: 1 storage: storageRequest: 10G ...-
Replace
<backend_name>with the name of the default back end.
-
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.