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

glance-operator can't set Region to config for using per-tenant quota

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhos-18.0.11
    • rhos-18.0.8
    • glance-operator
    • None
    • Pending Verification, Storage Integration Sprint 5
    • 2
    • Important

      To Reproduce Steps to reproduce the behavior:

      1. Deploy RHOSO18
      2. Check glance.conf in glance pod
      3. Under [oslo_limit] region_name option is missed.

      Expected behavior

      • region_name is specified with the correct value.

      Bug impact

      • The correct configuration can be done by glance-operator.

      Known workaround

      • Define customserviceconfig which includes the correct option for
        [oslo_limit]
        region_name = RegionOne
        

      Upstream doc mentions the parameter, https://docs.openstack.org/glance/latest/admin/quotas.html

      Additional context
      Currently, template file has region_name option in it at https://github.com/openstack-k8s-operators/glance-operator/blob/main/templates/common/config/00-config.conf#L99-L101
      However, as far as I read the current code, there is no way to pass the value to Region variable.

      On the other hand, for example, CacheEnabled variable is passed as templateParameters.

      $ grep CacheEnabled -r *
      controllers/glance_controller.go:		templateParameters["CacheEnabled"] = true
      controllers/glanceapi_controller.go:		templateParameters["CacheEnabled"] = true
      templates/common/config/00-config.conf:{{ if (index . "CacheEnabled") -}}
      templates/common/config/00-config.conf:{{ if (index . "CacheEnabled") -}}
      

              fpantano@redhat.com Francesco Pantano
              rhn-support-knoha Keigo Noha
              rhos-storage-integration
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: