Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu: add base repos to Kolla container image earlier #733

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

markgoddard
Copy link
Contributor

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.

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.
@markgoddard markgoddard self-assigned this Nov 1, 2023
Copy link
Contributor

@Alex-Welsh Alex-Welsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that we're going to have this resolved for our images, but it's possibly worth noting somewhere (docs maybe) that the problem will remain for places that aren't using our images & bifrost provisioning. I know some places e.g. eidf, this has come up before but I don't know exactly how common it is

etc/kayobe/kolla.yml Show resolved Hide resolved
@markgoddard markgoddard marked this pull request as ready for review November 1, 2023 17:04
@markgoddard markgoddard requested a review from a team as a code owner November 1, 2023 17:04
@markgoddard
Copy link
Contributor Author

Tested and working for glance-api and nova-compute images.

@markgoddard
Copy link
Contributor Author

I like that we're going to have this resolved for our images, but it's possibly worth noting somewhere (docs maybe) that the problem will remain for places that aren't using our images & bifrost provisioning. I know some places e.g. eidf, this has come up before but I don't know exactly how common it is

This is for the container images rather than the overcloud host images. It's only a problem if you use repository snapshots rather than upstream Ubuntu.

@jovial jovial merged commit 910dc74 into stackhpc/yoga Nov 3, 2023
20 checks passed
@jovial jovial deleted the yoga-ubuntu-build-deps branch November 3, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants