Skip to content

Select valkey over redis from 2025.2#445

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

Select valkey over redis from 2025.2#445
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. cloud-in-a-box currently targets
openstack_version 2025.1 (redis), so this is latent today, but the deploy
and upgrade paths must pick the service 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 newer or "redis" for 2025.1/2024.x. deploy.sh and
upgrade.sh resolve it once into a key_value_store variable and apply /
upgrade that.

Make the redis entry in the custom pull-container-images playbook
release-conditional on openstack_version too, so the image pre-pull stays
correct (pulling redis on 2025.2 would fail). Add valkey_master_password
(its own distinct value) to the kolla secrets; valkey is a drop-in on the
same ports, so redis_master_password and the rest are unchanged.

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 bf76a01 into main Jun 30, 2026
3 checks passed
@berendt berendt deleted the redis-to-valkey branch June 30, 2026 22:03
@github-project-automation github-project-automation Bot moved this from In review to Done in Human Board Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants