-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ubuntu: add base repos to Kolla container image earlier
Previously when building Kolla container images for Ubuntu it was common to get a dependency error during apt package installation, such as: The following packages have unmet dependencies: libc6-dev : Depends: libc6 (= 2.35-0ubuntu3.1) but 2.35-0ubuntu3.4 is to be installed This is caused by the packages in the Ubuntu base image being newer than those in the release train repository snapshot. This change fixes the issue by switching to the release train repositories earlier in the build process, before the first apt command runs. It's possible that we may also need to pin the Ubuntu base container image, but that would be another thing to maintain, so let's try without for now since this approach is necessary and may be sufficient.
- Loading branch information
1 parent
ec1ff05
commit 604fa6f
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/ubuntu-image-early-repos-08b4da6165f5fa11.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes an issue with Kolla container image builds for Ubuntu where the | ||
release train package repositories could be behind the container image, | ||
leading to image build failures. |