CS9 content provider job is broken currently with following error while building the base container.
```
Last metadata expiration check: 0:01:21 ago on Tue 18 Jan 2022 03:13:29 AM UTC.
centos-stream-release-9.0-6.el9.noarch.rpm 7.9 MB/s | 26 kB 00:00
warning: centos-stream-release-9.0-6.el9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
Verifying... ########################################
Preparing... ########################################
package centos-stream-release-9.0-8.el9.noarch (which is newer than centos-stream-release-9.0-6.el9.noarch) is already installed
time="2022-01-18T03:14:50Z" level=debug msg="\"/var/tmp/buildah894016426/mnt/buildah-bind-target-12\" is apparently not really mounted, skipping"
time="2022-01-18T03:14:50Z" level=debug msg="\"/var/tmp/buildah894016426/mnt/buildah-bind-target-11\" is apparently not really mounted, skipping"
time="2022-01-18T03:14:50Z" level=debug msg="\"/var/tmp/buildah894016426/mnt/buildah-bind-target-7\" is apparently not really mounted, skipping"
time="2022-01-18T03:14:50Z" level=debug msg="\"/var/tmp/buildah894016426/mnt/buildah-bind-target-3\" is apparently not really mounted, skipping"
time="2022-01-18T03:14:50Z" level=debug msg="\"/var/tmp/buildah894016426/mnt/rootfs\" is apparently not really mounted, skipping"
time="2022-01-18T03:14:50Z" level=debug msg="\"/var/tmp/buildah894016426/mnt\" is apparently not really mounted, skipping"
time="2022-01-18T03:14:50Z" level=debug msg="error building at step {Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 container=oci] Command:run Args:[if [ 'centos' == 'centos' ];then dnf -y install dnf-plugins-core && dnf download centos*release && rpm -ivh --nodeps --replacepkgs --replacefiles *.rpm && if [ -n \"$(rpm -qa redhat-release)\" ];then rpm -e --nodeps redhat-release; fi && rm -rf *.rpm; fi] Flags:[] Attrs:map[] Message:RUN if [ 'centos' == 'centos' ];then dnf -y install dnf-plugins-core && dnf download centos*release && rpm -ivh --nodeps --replacepkgs --replacefiles *.rpm && if [ -n \"$(rpm -qa redhat-release)\" ];then rpm -e --nodeps redhat-release; fi && rm -rf *.rpm; fi Original:RUN if [ 'centos' == 'centos' ];then dnf -y install dnf-plugins-core && dnf download centos*release && rpm -ivh --nodeps --replacepkgs --replacefiles *.rpm && if [ -n \"$(rpm -qa redhat-release)\" ];then rpm -e --nodeps redhat-release; fi && rm -rf *.rpm; fi}: error while running runtime: exit status 1"
```
Logs:
https://563468f00e94e2338fc4-0e05369923f9d9dc83501cb0c8bf10ab.ssl.cf2.rackcdn.com/824705/5/gate/tripleo-ci-centos-9-content-provider/b9a1676/logs/undercloud/home/zuul/workspace/logs/container-builds/94ba19ac-ea0c-44c6-abe9-481819a3b861/base/base-build.log
and job status:
https://zuul.openstack.org/builds?job_name=tripleo-ci-centos-9-content-provider&skip=0
As per the code
https://opendev.org/openstack/tripleo-common/src/branch/master/container-images/tcib/base/base.yaml#L50
```
- run: >-
if [ '{{ tcib_distro }}' == 'centos' ];then dnf -y install dnf-plugins-core &&
dnf download centos*release &&
rpm -ivh --nodeps --replacepkgs --replacefiles *.rpm &&
if [ -n "$(rpm -qa redhat-release)" ];then rpm -e --nodeps redhat-release; fi &&
rm -rf *.rpm; fi
```
dnf download centos*release is pulling older version of centos-stream-release and higher version of that package is already installed which is causing the breakage.
https:/ /logserver. rdoproject. org/48/ 38248/2/ check/tripleo- ci-centos- 8-content- provider/ 9e9aa3c/ logs/container- builds/ baa23530- 1c1a-438f- a010-2bf9509a69 62/base/ base-build. log
```
level=debug msg="closing stdin"
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription- manager to register.
Last metadata expiration check: 0:02:39 ago on Tue 18 Jan 2022 07:32:38 AM UTC. /usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin container=oci LANG=en_US.UTF-8] Command:run Args:[if [ 'centos' == 'centos' ];then dnf -y install dnf-plugins-core centos- stream- release && if [ -n \"$(rpm -qa redhat-release)\" ];then rpm -e --nodeps redhat-release; fi && rm -rf *.rpm; fi] Flags:[] Attrs:map[] Message:RUN if [ 'centos' == 'centos' ];then dnf -y install dnf-plugins-core centos- stream- release && if [ -n \"$(rpm -qa redhat-release)\" ];then rpm -e --nodeps redhat-release; fi && rm -rf *.rpm; fi Original:RUN if [ 'centos' == 'centos' ];then dnf -y install dnf-plugins-core centos- stream- release && if [ -n \"$(rpm -qa redhat-release)\" ];then rpm -e --nodeps redhat-release; fi && rm -rf *.rpm; fi}: error while running runtime: exit status 1"
Error:
Problem: The operation would result in removing the following protected packages: redhat-release
(try to add '--skip-broken' to skip uninstallable packages)
level=debug msg="error building at step {Env:[PATH=
```