Skip to content

Select valkey over redis from 2025.2#368

Merged
berendt merged 1 commit into
mainfrom
redis-to-valkey
Jul 1, 2026
Merged

Select valkey over redis from 2025.2#368
berendt merged 1 commit into
mainfrom
redis-to-valkey

Conversation

@ideaship

@ideaship ideaship commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Part of the OSISM-wide redis → valkey migration (upstream kolla-ansible
replaced redis with valkey at stable/2025.2; the redis role/playbook is gone).

Picks the key-value store per OpenStack release (redis for 2024.x/2025.1, valkey
for 2025.2 and newer) so osism apply/upgrade targets the service the active
image actually ships. On upgrade to 2025.2, the valkey role's upgrade tasks
migrate the redis data and remove the old redis containers automatically — no
manual teardown.

Draft: the OSISM defaults switch-over and these consumer-script changes must
land together, gated on the release defaults_version pin bump — held as draft
until that coordinated landing.

Part of the redis → valkey migration (all must land together, gated on the
release defaults_version pin bump):

🤖 Generated with Claude Code

Upstream kolla-ansible replaced redis with valkey at stable/2025.2, so
"osism apply redis" fails once the deployed image reaches 2025.2 while
"valkey" is absent on 2025.1 and older. metalbox currently targets
openstack_version 2024.2 (redis), so this is latent today, but the infra
scripts must pick the service per release to stay correct as metalbox
advances.

Add a valkey_or_redis() helper in scripts/include.sh that reads the
active OpenStack release from the kolla-ansible image label and echoes
"valkey" for 2025.2 and newer or "redis" for 2025.1/2024.x. The deploy,
update and run-all scripts resolve it once into a key_value_store
variable and apply/pull/upgrade that.

The per-release CI image mirror lists (zuul/vars/container-images-*.yml)
already match their release (redis for 2024.2/2025.1) and are left as is;
a 2025.2 list with valkey belongs with the future 2025.2 enablement. No
secrets change here: metalbox's kolla secrets carry no plaintext
redis_master_password, and valkey_master_password comes from the
release-versioned cfg-cookiecutter secrets when metalbox moves to 2025.2.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship ideaship marked this pull request as ready for review June 30, 2026 10:53
@berendt berendt moved this from Ready to In review in Human Board Jun 30, 2026
@berendt berendt merged commit 247a4cf into main Jul 1, 2026
3 checks passed
@berendt berendt deleted the redis-to-valkey branch July 1, 2026 07:40
@github-project-automation github-project-automation Bot moved this from In review to Done in Human Board Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants