7.5. Decommissioning an Image service API


To decommission an existing Image service API (glanceAPI), you must do the following:

  • Delete the glanceAPI CR and its associated objects, for example, pods and StatefulSets.
  • Update the keystoneEndpoint to point to an active glanceAPI.

You cannot delete a glanceAPI if it is the only glanceAPI in the OpenStackControlPlane, and you cannot point the keystoneEndpoint parameter in your OpenStackControlPlane CR file to a non-existent glanceAPI.

When you remove a glanceAPI, PersistentVolumeClaims (PVCs) that are associated to the API are preserved so that you can re-add the API with its previous settings if required.

Procedure

  1. Verify that more that one glanceAPI is deployed in the OpenStackControlPlane:

    $ oc -n openstack get oscp  $(oc get oscp -o custom-columns=NAME:.metadata.name --no-headers) -o jsonpath='{.spec.glance.template.glanceAPIs}' | jq
  2. Identify the current glanceAPI that is registered in the Keystone catalog:

    $ oc -n openstack get oscp $(oc get oscp -o custom-columns=NAME:.metadata.name --no-headers) -o jsonpath='{.spec.glance.template.keystoneEndpoint}'
  3. Verify that the new glanceAPI has a Keystone endpoint:

    $ oc exec -it openstackclient bash -- openstack endpoint list | grep image
  4. If the glanceAPI that you are removing is the API registered in the Keystone catalog, open your OpenStackControlPlane CR file, openstack_control_plane.yaml to decommission the API and update the keystoneEndpoint parameter. In the following example, you remove the glanceAPI that is named default and update the keystoneEndpoint parameter to default1:

    ...
    apiVersion: core.openstack.org/v1beta1
    kind: OpenStackControlPlane
    spec:
      glance:
        template:
          keystoneEndpoint: default1
          glanceAPIs:
            default1:
              type: single
              replicas: 1
          storage:
            storageRequest: 10G
    ...
  5. Update the control plane:

    $ oc apply -f openstack_control_plane.yaml -n openstack
  6. 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
返回顶部