Change configmap name with ceph config

With the change in [1], where the ceph-pools-audit chart will
be disabled by default, it will not be possible to get the
'ceph-etc-pools-audit' configmap.

To resolve this, the 'ceph-etc-pools-audit' configmap has been
changed to 'rbd-storage-init.

[1]: https://review.opendev.org/c/starlingx/platform-armada-app/+/943690

Test Plan:
[PASS] build app packages and tarball
[PASS] apply stx-openstack app tarball in a simplex
       virtual environment
[PASS] Upload a CirrOS image to glance
[PASS] Create a volume of type "ceph-store" from the
       previous CirrOS image

Story: 2011353
Task: 51845

Change-Id: Ic93a4c9d0fa5acb460c602d96ed4c0ac184a460a
Signed-off-by: Erickson Silva de Oliveira <Erickson.SilvadeOliveira@windriver.com>
This commit is contained in:
Erickson Silva de Oliveira 2025-03-21 19:47:46 -03:00
parent 2f7492a0b1
commit 2a58c90313

View File

@ -29,7 +29,7 @@ LOG = logging.getLogger(__name__)
class OpenstackAppLifecycleOperator(base.AppLifecycleOperator):
CHARTS_PENDING_INSTALL_ITERATIONS = 60
APP_KUBESYSTEM_RESOURCE_CONFIG_MAP = 'ceph-etc-pools-audit'
APP_KUBESYSTEM_RESOURCE_CONFIG_MAP = 'rbd-storage-init'
APP_OPENSTACK_RESOURCE_CONFIG_MAP = 'ceph-etc'
WAS_APPLIED = 'was_applied'
@ -206,7 +206,7 @@ class OpenstackAppLifecycleOperator(base.AppLifecycleOperator):
self.APP_OPENSTACK_RESOURCE_CONFIG_MAP,
common.HELM_NS_OPENSTACK)
# Read ceph-etc-pools-audit config map and rename it to ceph-etc
# Read rbd-storage-init config map and rename it to ceph-etc
config_map_body = app_op._kube.kube_read_config_map(
self.APP_KUBESYSTEM_RESOURCE_CONFIG_MAP,
common.HELM_NS_RBD_PROVISIONER)