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

  1. Open your OpenStackControlPlane CR file, openstack_control_plane.yaml, and add the parameters to the glance template to configure a new glanceAPI. In the following example, there is an existing default API that uses the Object Storage service (swift) as a back end, and you update the OpenStackControlPlane to deploy a new default1 API:

    ...
    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.
  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".

    提示

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

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部