Skip to content

Commit

Permalink
Pass centos.repo from host during image build.
Browse files Browse the repository at this point in the history
We are facing an issue during image build in the related bug,
because mirrors.centos.org and vexx mirrors are not in sync.

The base image which we use to build overcloud images already have
centos.repo and when proxy mirros are not updated this can cause
an issue.

This is a workaround patch to pass centos.repo(which are disabled
on host) so that same repos in the image will be overridden.

One change in behavior is at the end of image build, dib will delete
the centos.repos in the overcloud image as dib cleans up what it adds
ignoring what was already present.

Related-Bug: #1975551
Change-Id: Ia230c08817f138c2cba60076d29e1d58fde118c8
  • Loading branch information
Sandeepyadav93 committed May 24, 2022
1 parent 8f7363e commit b2ce4b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/oooci-build-images/vars/centos-9.yaml
Expand Up @@ -3,6 +3,7 @@ tripleo_image_source: http://cloud.centos.org/centos/9-stream/x86_64/images/Cent
dib_yum_repo_conf:
- /etc/yum.repos.d/quickstart-centos*
- /etc/yum.repos.d/delorean*
- /etc/yum.repos.d/centos.repo
- "{{ centos_compose_dib_yum_repos | ternary('/etc/yum.repos.d/CentOS-Stream-9*','') }}"
dib_release: "9-stream"
dib_dnf_module_streams: ""
Expand Down

0 comments on commit b2ce4b4

Please sign in to comment.