Skip to content

Restore upstream mirrors in container image package repos #483

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

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

markgoddard
Copy link
Contributor

Currently the Kolla container images configure Yum repositories to use
pulp-server on SMS Cloud:

(nova-compute) $ grep baseurl /etc/yum.repos.d/CentOS-Stream-BaseOS.repo
baseurl=http://pulp-server.internal.sms-cloud:8080/pulp/content/centos/8-stream/BaseOS/x86_64/os/20211122T102435

This makes it difficult to install/update packages for debugging issues
in customer environments.

This change restores Yum repository files at the end of the container image
build to point to distribution repositories. It also makes an attempt to
do the same for Apt repos, although these are not enabled in Wallaby
currently.

Currently the Kolla container images configure Yum repositories to use
pulp-server on SMS Cloud:

(nova-compute) $ grep baseurl /etc/yum.repos.d/CentOS-Stream-BaseOS.repo
baseurl=http://pulp-server.internal.sms-cloud:8080/pulp/content/centos/8-stream/BaseOS/x86_64/os/20211122T102435

This makes it difficult to install/update packages for debugging issues
in customer environments.

This change restores Yum repository files at the end of the container image
build to point to distribution repositories. It also makes an attempt to
do the same for Apt repos, although these are not enabled in Wallaby
currently.
@markgoddard markgoddard requested a review from a team as a code owner April 13, 2023 14:03
@markgoddard markgoddard self-assigned this Apr 13, 2023
@markgoddard markgoddard requested a review from priteau April 13, 2023 14:03
@markgoddard
Copy link
Contributor Author

@markgoddard
Copy link
Contributor Author

Tested here: https://github.com/stackhpc/stackhpc-kayobe-config/actions/runs/4689189856

Tested out the image:

[centos@skc-builder-runner ~]$ docker run -u0 --rm -it --net=host 94df4f5bb497 bash
()[glance@skc-builder-runner /]$ grep -r baseurl /etc/yum.repos.d/ | grep pulp
()[glance@skc-builder-runner /]$ dnf upgrade

@markgoddard markgoddard merged commit ac86491 into stackhpc/wallaby Aug 29, 2023
@markgoddard markgoddard deleted the wallaby-restore-upstream-repos branch August 29, 2023 10:03
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