Skip to content

Select valkey over redis from 2025.2#2918

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

Select valkey over redis from 2025.2#2918
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 (the
redis role/playbook is gone), so deploy/upgrade of "redis" fails on
2025.2 while "valkey" is absent on 2025.1 and older. testbed deploys and
upgrades across releases, so the choice must be made per release.

Add a valkey_or_redis() helper to include.sh that reads the active
OpenStack release from the kolla-ansible image label and echoes "valkey"
for 2025.2+ (and master) or "redis" for 2025.1/2024.x. Each infra script
resolves it once into a key_value_store variable and applies that.

On upgrade to 2025.2, "osism apply -a upgrade valkey" runs the valkey
role's upgrade tasks, which migrate the redis data into valkey and remove
the old redis containers automatically -- no manual teardown needed.

Add valkey_master_password to the kolla test secrets (valkey's own auth;
its config also reads redis_master_password to sync during migration),
using its own distinct test value.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Roger Luethi <luethi@osism.tech>
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