aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Milewski <vurmil@gmail.com>2026-02-06 19:25:31 +0100
committerPiotr Milewski <vurmil@gmail.com>2026-02-06 19:47:54 +0100
commit1e84b03d8e8504400ae3f752285d8f257e7057bb (patch)
tree1cead9dc3424713a24ca640f96f552fb4cf9c91b
parentfb256c12049093b5b37d607e57c26cd4a36d5e9e (diff)
downloadkolla-ansible-1e84b03d8e8504400ae3f752285d8f257e7057bb.tar.gz
kolla-ansible-1e84b03d8e8504400ae3f752285d8f257e7057bb.zip
valkey: fix upgrade failure when redis inventory group is absent
During upgrades from 2025.1 to 2025.2 the Valkey role still expects the legacy ``redis`` inventory group to be present for migration purposes. Closes-Bug: #2140980 Change-Id: I29400817f580ee22e6d45f1c0e730397f3323c44 Signed-off-by: Piotr Milewski <vurmil@gmail.com>
-rw-r--r--ansible/inventory/all-in-one4
-rw-r--r--ansible/inventory/multinode4
-rw-r--r--releasenotes/notes/bug-2140980-5b64d7cea7700d30.yaml8
3 files changed, 16 insertions, 0 deletions
diff --git a/ansible/inventory/all-in-one b/ansible/inventory/all-in-one
index fbd2664ec..e4b5fb495 100644
--- a/ansible/inventory/all-in-one
+++ b/ansible/inventory/all-in-one
@@ -158,6 +158,10 @@ control
[skyline:children]
control
+# TODO(vurmil): Remove after G/2026.1 release as Redis migration is no longer required
+[redis:children]
+control
+
[valkey:children]
control
diff --git a/ansible/inventory/multinode b/ansible/inventory/multinode
index f22d27072..3a3db6f29 100644
--- a/ansible/inventory/multinode
+++ b/ansible/inventory/multinode
@@ -176,6 +176,10 @@ control
[skyline:children]
control
+# TODO(vurmil): Remove after G/2026.1 release as Redis migration is no longer required
+[redis:children]
+control
+
[valkey:children]
control
diff --git a/releasenotes/notes/bug-2140980-5b64d7cea7700d30.yaml b/releasenotes/notes/bug-2140980-5b64d7cea7700d30.yaml
new file mode 100644
index 000000000..32975803e
--- /dev/null
+++ b/releasenotes/notes/bug-2140980-5b64d7cea7700d30.yaml
@@ -0,0 +1,8 @@
+---
+fixes:
+ - |
+ Fixed an issue during upgrades from 2025.1 to 2025.2 where the Valkey
+ role unconditionally referenced the ``redis`` inventory group. Since
+ Redis is no longer present in the default inventories, this caused the
+ upgrade to fail with an ``AnsibleUndefinedVariable`` error. The upgrade
+ logic now correctly handles inventories without a ``redis`` group.