Bug 1826907
| Summary: | GlanceMultiStoreConfig does not apply section removal to glance configuration files | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | John Fulton <johfulto> |
| Component: | puppet-glance | Assignee: | Alan Bishop <abishop> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Mike Abrams <mabrams> |
| Severity: | unspecified | Docs Contact: | Chuck Copello <ccopello> |
| Priority: | unspecified | ||
| Version: | 16.0 (Train) | CC: | abishop, jjoyce, jschluet, slinaber, tvignaud |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-09 19:56:55 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1802774 | ||
Just to clarify If I have already deployed with this:
parameter_defaults:
ControllerExtraConfig:
glance::api::enabled_import_methods: 'glance-direct,web-download,copy-image'
GlanceBackend: rbd
GlanceStoreDescription: 'central rbd glance store'
CephClusterName: central
GlanceMultistoreConfig:
dcn0:
GlanceBackend: rbd
GlanceStoreDescription: 'dcn0 rbd glance store'
CephClientUserName: 'external'
CephClusterName: dcn0
dcn1:
GlanceBackend: rbd
GlanceStoreDescription: 'dcn1 rbd glance store'
CephClientUserName: 'external'
CephClusterName: dcn1
and I update the above to this:
parameter_defaults:
ControllerExtraConfig:
glance::api::enabled_import_methods: 'glance-direct,web-download,copy-image'
GlanceBackend: rbd
GlanceStoreDescription: 'central rbd glance store'
CephClusterName: central
GlanceMultistoreConfig:
dcn0:
GlanceBackend: rbd
GlanceStoreDescription: 'dcn0 rbd glance store'
CephClientUserName: 'external'
CephClusterName: dcn0
Then after the stack update I expect the last 15 lines of my glance-api.conf to look like this:
$ sudo tail -15 /var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-api.conf
# below.
#conversion_format = raw
[default_backend]
rbd_store_ceph_conf=/etc/ceph/central.conf
rbd_store_user=openstack
rbd_store_pool=images
store_description=central rbd glance store
[dcn0]
rbd_store_ceph_conf=/etc/ceph/dcn0.conf
rbd_store_user=external
rbd_store_pool=images
store_description=dcn0 rbd glance store
$
The bug is that the glance.conf still has [dcn1] and the items under it.
John, I cannot reproduce this. I did a sequence of deployments (stack updates) that added and removed entries from the GlanceMultistoreConfig THT parameter, and always got the correct set of enabled_backends and backend sections in the updated glance-api.conf. Can you reproduce this? If it can't be reproduced let's close it. If I'm able to reproduce I will re-open |
If I have a deployment where Glance is configured with three stores (default, dcn0, dcn1) [1] and I remove one of the stores (e.g. remove dcn1) and do a stack update, then the glance-api.conf is not updated [2] and the backend for dcn1 is still present [2] [1] parameter_defaults: ControllerExtraConfig: glance::api::enabled_import_methods: 'glance-direct,web-download,copy-image' GlanceBackend: rbd GlanceStoreDescription: 'central rbd glance store' CephClusterName: central GlanceMultistoreConfig: dcn0: GlanceBackend: rbd GlanceStoreDescription: 'dcn0 rbd glance store' CephClientUserName: 'external' CephClusterName: dcn0 dcn1: GlanceBackend: rbd GlanceStoreDescription: 'dcn1 rbd glance store' CephClientUserName: 'external' CephClusterName: dcn1 [2] $ sudo tail -20 /var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-api.conf Warning: Permanently added '192.168.24.10' (ECDSA) to the list of known hosts. # below. #conversion_format = raw [default_backend] rbd_store_ceph_conf=/etc/ceph/central.conf rbd_store_user=openstack rbd_store_pool=images store_description=central rbd glance store [dcn0] rbd_store_ceph_conf=/etc/ceph/dcn0.conf rbd_store_user=external rbd_store_pool=images store_description=dcn0 rbd glance store [dcn1] rbd_store_ceph_conf=/etc/ceph/dcn1.conf rbd_store_user=glance rbd_store_pool=images store_description=dcn1 rbd glance store $