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 $
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