aboutsummaryrefslogtreecommitdiff
path: root/releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml
diff options
context:
space:
mode:
authorKari Häkkinen <Kari.Hakkinen@admicom.com>2026-07-22 15:24:36 +0300
committerKari Häkkinen <Kari.Hakkinen@admicom.com>2026-07-28 21:22:18 +0300
commit001ceb044c654733fd4327fc98af9d3db95dbcd1 (patch)
tree6123761185dc2b39a4c237f595963d5c9be7c811 /releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml
parentfff4bf1c195ba5f65bfc0a5394285ccfad374eed (diff)
downloadkolla-ansible-001ceb044c654733fd4327fc98af9d3db95dbcd1.tar.gz
kolla-ansible-001ceb044c654733fd4327fc98af9d3db95dbcd1.zip
cinder: Define backend variables in group_vars/all
The iscsi role derives the cinder-volume/backup inventory groups from cinder_enabled_backends, but that variable (along with cinder_backends, cinder_ceph_backends and the cinder_backend_*_name variables) was only defined in the cinder role defaults. The iscsi play runs before the cinder play, so the variable is out of scope there and prechecks (and deploy/reconfigure) fail with: 'cinder_enabled_backends' is undefined when a Cinder iSCSI/LVM backend is enabled. Move these backend variable definitions to group_vars/all/cinder.yml so they are in scope for every play, including the iscsi role. This also keeps all cinder backend definitions - including the cinder-backup ceph backend (cinder_backup_backend_ceph_name, cinder_backup_ceph_backend) - in one place. All of their dependencies (the enable_cinder_backend_* flags, cinder_backend_ceph and the ceph_* variables) are already global, and globals.yml is applied as extra-vars, so operator overrides continue to take precedence. Partial-Bug: #2158120 Change-Id: I765f45814382377332ba9f01f1bc52bd4e046170 Signed-off-by: Kari Häkkinen <Kari.Hakkinen@admicom.com> (cherry picked from commit 2df2ee6e49d0fd58b1781c0b490b019e1936e96b)
Diffstat (limited to 'releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml')
-rw-r--r--releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml b/releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml
new file mode 100644
index 000000000..3945ee4da
--- /dev/null
+++ b/releasenotes/notes/fix-iscsi-cinder-enabled-backends-f482e5454dc8fa87.yaml
@@ -0,0 +1,10 @@
+---
+fixes:
+ - |
+ Fixes ``kolla-ansible prechecks`` (and deploy/reconfigure) failing with
+ ``'cinder_enabled_backends' is undefined`` in the ``iscsi`` role when a
+ Cinder iSCSI/LVM backend is enabled. The ``cinder_enabled_backends`` and
+ related backend variables are now defined in ``group_vars/all`` so that
+ they are in scope for the ``iscsi`` role, whose play runs before the
+ ``cinder`` play. `LP#2158120
+ <https://bugs.launchpad.net/kolla-ansible/+bug/2158120>`__