Repository navigation
Conversation
The OpenStack image builds pulled several things that could change or disappear without a commit here: floating airshipit base tags, the latest uv, upper-constraints from releases.openstack.org, an unchecked noVNC tarball, and kubectl from the pkgs.k8s.io apt repo, whose expired certificate just broke the ironic build. - Pin the airshipit base images by digest. The release is now in the FROM line instead of the OPENSTACK_VERSION build arg, so Renovate can update the digests. Group those updates and leave release changes to a human, since the forks move with the release. - Install against the /upper-constraints.txt baked into the base image, the constraints its venv was built with, so the base digest pins it. The nova image doesn't keep that file, so nova copies it from the matching venv_builder image. - Pin uv to a release and digest. - Copy kubectl from the registry.k8s.io/kubectl image instead of adding the pkgs.k8s.io apt repo. - Check the noVNC tarball's sha256, as keystone does for mod_auth_openidc, and let Renovate track the noVNC release.
Every OpenStack image build started cold, and any change under python/ rebuilt all eleven images, so an ironic-understack change also rebuilt keystone, glance, horizon and the rest. - Reuse the layers of the last main build through a registry cache at ghcr.io/<repo>/<image>:buildcache. Only pushes to main write it, so a pull request can't change what other builds start from. This applies to every image built with build-container-reuse.yaml. - On pull requests and pushes to main, build only the images whose container directory or python package changed (or the shared build workflows). Tags, manual runs and the merge queue still build every image. A new build input lets a caller skip the build without skipping the closed-PR cleanup. - Trigger on the four python packages the images install instead of all of python/. - Deepen the fork clones for pbr with commits only (--filter=tree:0). For nova that is 8s and 34MB instead of 55s and 333MB, and the package versions come out the same.
This branch has not been deployed
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.
What does this change do?
Two commits that make the OpenStack image builds reproducible and cheaper.
Pin what the builds download (
fix(containers))The ironic build broke when the
pkgs.k8s.iocertificate expired. Several other inputs could also change or vanish without a commit here.FROMline instead of theOPENSTACK_VERSIONbuild arg, so Renovate can update the digests. Renovate groups those updates and won't open release bumps (2026.1 → 2026.2), since the forks have to move with the release./upper-constraints.txtbaked into the base image, the constraints its venv was built with, instead of the live releases.openstack.org file (identical today). The nova base image doesn't include that file, so nova copies it from the matching pinnedvenv_builderimage.uvis pinned to 0.13.9 by digest, replacing:latest.registry.k8s.io/kubectl:v1.35.9instead of adding the pkgs.k8s.io apt repo.Build only the images that changed, from cache (
ci(containers))ghcr.io/<repo>/<image>:buildcache. Only pushes tomainwrite it, so a PR can't change what other builds start from. This applies to every image built withbuild-container-reuse.yaml.mainbuild only the images whosecontainers/<image>/directory, Python package, or the shared build workflows changed. Tags, manual runs and the merge queue still build all 11, soopenstack-containers-resultstill gates on every image.python/.--filter=tree:0). For nova that takes 8 s and 34 MB instead of 55 s and 333 MB.Testing
33.0.3.dev43, neutron28.0.0.0b3.dev395), so the commits-only clone doesn't change pbr's versions. The understack packages import.tarstep can't run under emulation on arm64 macOS (it fails the same way onmain), so this PR's CI run is the first full ironic build. kubectl from the pinned image runs in the ironic base.main.Upgrade impact
upgrade-impactlabel and a release note: runscriv createfrom therepository root and describe the required action in the generated
changelog.d/file. See RELEASING.md.No operator action needed: the images are built the same way from the same inputs.