Repository navigation
Declare and check the kolla build refs - #2867
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 4, 2026 15:24
ideaship
marked this pull request as draft
November 4, 2026 15:32
ideaship
marked this pull request as ready for review
November 5, 2026 09:56
ideaship
marked this pull request as draft
November 5, 2026 09:56
ideaship
marked this pull request as ready for review
November 5, 2026 09:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
container-images-kolla builds from two sources besides
openstack_projects: its openstack/kolla checkout and the openstack/requirements tarball. Both were chosen by per-releaseifchains in its scripts, which no drift check can read. When 2025.1 moved to unmaintained, nothing reported it until kolla'sstable/2025.1was 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_buildblock in eachlatest/openstack-<R>.yml, with the values the build uses today.kolla_source_ref_phasenow checks them.kolla(git ref)requirements(tarball ref)unmaintained/2024.1unmaintained-2024.12024.2-eolstable-2024.2unmaintained/2025.1unmaintained-2025.1stable/2025.2stable-2025.2stable/2026.1stable-2026.1kolla_source_ref_phaseprobes both refs the same way as the project refs. For kolla it uses the tarball form, because opendev publisheskolla-<phase>-<R>.tar.gzalongside the branch. A tag such as2024.2-eolnames 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_buildandkolla_version_chain_upstream. They read the declared ref. Until now they went throughsource.release_to_ref, which probesstable/first and so resolved the frozen branch during a transition. That remains the fallback for a manifest without the key, and arelease_refsoverride still wins.container-image-kolla-ansible,container-image-osism-ansible, metalbox, and this repository'scheck-*/create-version/release-notesscripts.Testing:
stable,kolla_source_ref_phasereportskolla_build.kollaandkolla_build.requirementsin 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