Skip to content

latest: pin kolla_ansible docker image tag#2494

Open
ideaship wants to merge 1 commit into
mainfrom
fix/pin-kolla-ansible-in-latest
Open

latest: pin kolla_ansible docker image tag#2494
ideaship wants to merge 1 commit into
mainfrom
fix/pin-kolla-ansible-in-latest

Conversation

@ideaship
Copy link
Copy Markdown
Contributor

@ideaship ideaship commented May 13, 2026

Summary

  • Adds docker_images.kolla_ansible: '0.20260328.0' to latest/base.yml with a datasource=docker Renovate annotation
  • Adds an allowedVersions package rule to .github/renovate.json restricting Renovate to stable date-based tags (0.YYYYMMDD.N), preventing proposals of rolling OpenStack tags like 2025.1

This is the release-side half of a two-repo fix for kolla/release/2025.1/fluentd:2025.1 not found 500 errors in testbed-upgrade-stable-next-ubuntu-24.04. Without this entry, generics/environments/manager/images.yml fell into a manager_version == 'latest' bypass that resolved kolla_ansible_tag to openstack_version rather than the pinned date-stamped tag.

Must be merged before osism/generics#595.

Test plan

  • python3 -c "import yaml; yaml.safe_load(open('latest/base.yml'))" passes
  • python3 -c "import json; json.load(open('.github/renovate.json'))" passes
  • After both PRs merge: MANAGER_VERSION=latest tox -e test in generics produces kolla_ansible_tag: 0.20260328.0

@ideaship ideaship marked this pull request as ready for review May 13, 2026 17:50
@ideaship ideaship requested a review from berendt May 13, 2026 17:52
@ideaship ideaship moved this from Ready to In review in Human Board May 16, 2026
latest/base.yml had no docker_images.kolla_ansible entry. This caused
generics/environments/manager/images.yml to fall into its
{% if manager_version == 'latest' %} branch, which resolved
kolla_ansible_tag to openstack_version (e.g. 2025.1) at render time.

The kolla/release/2025.1/ registry namespace carries only date-stamped
tags such as 5.0.9.20260328. The floating 2025.1 tag exists only in the
bare kolla/ namespace, not in kolla/release/2025.1/. Any upgrade run
using the rendered tag therefore receives a 500 from the registry when
pulling per-service images (e.g. fluentd), failing the Restart handler
on all targeted hosts.

Add kolla_ansible: '0.20260328.0' to docker_images, matching the value
in the current stable release (10.0.0/base.yml). With this entry
present, the generics template's {% if 'kolla_ansible' in versions %}
path fires for latest and uses the pinned, date-stamped tag rather than
the rolling openstack_version fallback.

Add a datasource=docker Renovate annotation so future stable kolla-
ansible tags are tracked automatically. Add an allowedVersions package
rule restricting proposals to the 0.YYYYMMDD.N format, preventing
Renovate from ever proposing rolling OpenStack tags (2025.1, master).

This is the release-side half of a two-repo fix. The generics side
removes the {% if manager_version == 'latest' %} bypass for
kolla_ansible_tag once this entry is present and merged.

AI-assisted: Claude Code
Signed-off-by: Roger Luethi <[email protected]>
@ideaship ideaship force-pushed the fix/pin-kolla-ansible-in-latest branch from 9baa0b4 to c79a495 Compare May 29, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants