Skip to content

Declare and check the kolla build refs - #2867

Merged
berendt merged 1 commit into
mainfrom
declare-kolla-build-refs
Nov 5, 2026
Merged

berendt merged 1 commit into
mainfrom
declare-kolla-build-refs

Conversation

@ideaship

@ideaship ideaship commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

container-images-kolla builds from two sources besides openstack_projects: its openstack/kolla checkout and the openstack/requirements tarball. Both were chosen by per-release if chains in its scripts, which no drift check can read. When 2025.1 moved to unmaintained, nothing reported it until kolla's stable/2025.1 was deleted on 2026-11-04 and every 2025.1 build failed at the checkout. osism/container-images-kolla#834 fixed that by hand.

This PR declares both refs in a kolla_build block in each latest/openstack-<R>.yml, with the values the build uses today. kolla_source_ref_phase now checks them.

Release kolla (git ref) requirements (tarball ref)
2024.1 unmaintained/2024.1 unmaintained-2024.1
2024.2 2024.2-eol stable-2024.2
2025.1 unmaintained/2025.1 unmaintained-2025.1
2025.2 stable/2025.2 stable-2025.2
2026.1 stable/2026.1 stable-2026.1
  • kolla_source_ref_phase probes both refs the same way as the project refs. For kolla it uses the tarball form, because opendev publishes kolla-<phase>-<R>.tar.gz alongside the branch. A tag such as 2024.2-eol names no phase and is skipped. The two refs report as one block, and the remediation gives the spelling each key takes.
  • enablement.kolla_ref() is now used by the three plugins that read openstack/kolla at a release ref: kolla_build_conf_unknown_section, kolla_enablement_build and kolla_version_chain_upstream. They read the declared ref. Until now they went through source.release_to_ref, which probes stable/ first and so resolved the frozen branch during a transition. That remains the fallback for a manifest without the key, and a release_refs override still wins.
  • Other consumers of these manifests read named keys only, so the new block does not affect them: container-image-kolla-ansible, container-image-osism-ansible, metalbox, and this repository's check-*/create-version/release-notes scripts.

Testing:

  • The full test suite passes (1123 passed, 11 of them new, 2 skipped). Lint passes at the CI-pinned versions.
  • Run against live upstream (2026-11-04 14:50 UTC), the four affected plugins report nothing to act on.
  • Positive control: with the 2025.1 refs set back to stable, kolla_source_ref_phase reports kolla_build.kolla and kolla_build.requirements in one block and exits 1.

container-images-kolla does not read the block yet. The companion PR, which switches its scripts to it, has to merge after this one:

🤖 Generated with Claude Code

container-images-kolla builds from two sources besides
openstack_projects: its openstack/kolla checkout and the
openstack/requirements tarball. Both were chosen by per-release if
chains in its scripts, which no drift check can read, so their
unmaintained transition went unnoticed until upstream deleted the
stable branch and the build failed.

Declare them in a kolla_build block in each latest/openstack-<R>.yml,
with the values the build uses today. kolla is a git ref,
requirements a tarball ref named like openstack_projects.

kolla_source_ref_phase now scans both refs with the same probe. kolla
is read in tarball form, since opendev publishes
kolla-<phase>-<R>.tar.gz alongside the branch. A tag such as
2024.2-eol names no phase and is skipped. Both refs report as one
block, whose remediation names the spelling each key takes.

The three plugins that read openstack/kolla at a release ref now use
the declared ref through enablement.kolla_ref(). source.release_to_ref
probes stable/ first and so resolved the frozen branch during a
transition; it stays the fallback for a manifest without the key. A
release_refs override still wins.

container-images-kolla does not read the block yet.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship
ideaship requested a review from berendt November 4, 2026 15:24
@ideaship
ideaship marked this pull request as ready for review November 4, 2026 15:24
@ideaship ideaship self-assigned this Nov 4, 2026
@ideaship
ideaship marked this pull request as draft November 4, 2026 15:32
@ideaship
ideaship marked this pull request as ready for review November 5, 2026 09:56
@ideaship
ideaship marked this pull request as draft November 5, 2026 09:56
@ideaship
ideaship marked this pull request as ready for review November 5, 2026 09:58
@berendt
berendt merged commit f429234 into main Nov 5, 2026
3 checks passed
@berendt
berendt deleted the declare-kolla-build-refs branch November 5, 2026 10:22
@github-project-automation github-project-automation Bot moved this from New to Done in Human Board Nov 5, 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.

2 participants