
This change activates the stx-openstack app support for the rook ceph storage backend. For this, the cinder, glance, libvirt and nova charts were properly configured based on the type of ceph backend currently available (baremetal or rook ceph). The rook ceph support has also required the lifecycle_openstack to be changed to support copying the ceph configmap either from the rook-ceph or kube-system namespace. Furthermore, a new patch was added to the openstack-helm package to ensure that nova storage-init job can create and set the size of the related ceph pool for AIO-SX systems (size=1). This change also improves the dynamic image override feature introduced by [1], updating the images:tags overrides in a reusable _update_image_tag_overrides method of the OpenstackBaseHelm base class. Unit tests for this and the others methods in openstack.py are planned for a near future. [1]https://review.opendev.org/c/starlingx/openstack-armada-app/+/947531 Test Plan: [PASS] build stx-openstack packages and tarball Baremetal ceph deployment: [PASS] upload and apply the stx-openstack tarball to a virtual AIO-SX [PASS] check that ceph-config-helper image overrides are NOT applied [PASS] create an cirros image [PASS] create a volume from cirros image [PASS] create a volume backup [PASS] delete backup, volume and image Rook ceph deployment: [PASS] upload and apply the stx-openstack tarball to a AIO-SX [PASS] check that ceph-config-helper image overrides are applied [PASS] create an cirros image [PASS] create a volume from cirros image [PASS] create a volume backup [PASS] delete backup, volume and image Story: 2011388 Task: 52007 Depends-On: https://review.opendev.org/c/starlingx/root/+/947876 Change-Id: I461ea05f33ece776b2cd92f780882943b62f2168 Signed-off-by: Alex Figueiredo <alex.fernandesfigueiredo@windriver.com>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From c9888799b8afae1500142d534c305a6cc38ebbe3 Mon Sep 17 00:00:00 2001
|
|
From: Alex Figueiredo <alex.fernandesfigueiredo@windriver.com>
|
|
Date: Wed, 2 Apr 2025 11:20:52 -0300
|
|
Subject: [PATCH] Enable ceph pool creation for AIO systems
|
|
|
|
The ceph admin tool/CLI requires the option "--yes-i-really-mean-it" to enable
|
|
the storage init job to set the pool size to 1 for AIO-SX deployments.
|
|
|
|
Signed-off-by: Alex Figueiredo <alex.fernandesfigueiredo@windriver.com>
|
|
---
|
|
nova/templates/bin/_storage-init.sh.tpl | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/nova/templates/bin/_storage-init.sh.tpl b/nova/templates/bin/_storage-init.sh.tpl
|
|
index cb3505d4..70c71a9f 100644
|
|
--- a/nova/templates/bin/_storage-init.sh.tpl
|
|
+++ b/nova/templates/bin/_storage-init.sh.tpl
|
|
@@ -34,7 +34,7 @@ if [ "x$STORAGE_BACKEND" == "xrbd" ]; then
|
|
fi
|
|
size_protection=$(ceph osd pool get $1 nosizechange | cut -f2 -d: | tr -d '[:space:]')
|
|
ceph osd pool set $1 nosizechange 0
|
|
- ceph osd pool set $1 size ${RBD_POOL_REPLICATION}
|
|
+ ceph osd pool set $1 size ${RBD_POOL_REPLICATION} --yes-i-really-mean-it
|
|
ceph osd pool set $1 nosizechange ${size_protection}
|
|
ceph osd pool set $1 crush_rule "${RBD_POOL_CRUSH_RULE}"
|
|
}
|
|
--
|
|
2.34.1
|
|
|