Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-8072

Adding and then removing an glance API definition from OpenStackControlPlane does not clean up spec.glance.apiOverrides

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • Low

      Reproduce:

      • duplicate the default glanceAPIs definition in OpenStackControlPlane. I.e. add default-2
      • remove default-2

      The spec.glance.apiOverrides still has a default-2 item left in the CR.

        glance:
          apiOverrides:
            default:
              route:
                metadata:
                  annotations:
                    api.glance.openstack.org/timeout: 60s
                    haproxy.router.openshift.io/timeout: 60s
            default2:
              route:
                metadata:
                  annotations:
                    api.glance.openstack.org/timeout: 60s
                    haproxy.router.openshift.io/timeout: 60s
          enabled: true
          template:
            apiTimeout: 60
            databaseAccount: glance
            databaseInstance: openstack
            dbPurge:
              age: 30
              schedule: 1 0 * * *
            glanceAPIs:
              default:
                apiTimeout: 60
                containerImage: quay.io/podified-antelope-centos9/openstack-glance-api@sha256:f3d65785c651884fe668b7f35b949452604716bd08dec08f3ba102801709f2be
                imageCache:
                  cleanerScheduler: '*/30 * * * *'
                  prunerScheduler: 1 0 * * *
                  size: ""
                networkAttachments:
                - storage
                override:
                  service:
                    internal:
                      metadata:
                        annotations:
                          metallb.universe.tf/address-pool: internalapi
                          metallb.universe.tf/allow-shared-ip: internalapi
                          metallb.universe.tf/loadBalancerIPs: 172.17.0.80
                      spec:
                        type: LoadBalancer
                replicas: 1
                resources: {}
                storage: {}
                tls:
                  api:
                    internal: {}
                    public: {}
                type: single
            imageCache:
      ...
      

      The leftover definition can be manually deleted from the CR.

            fpantano@redhat.com Francesco Pantano
            rh-ee-bgibizer Balazs Gibizer
            rhos-dfg-storage-squad-glance
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: