Unable to install packages via yum with UBI7 build 1443 with tag:7.7
I imported the tarball from run 1443 (https://dcar.dsop.io/report-artifact/dsop-pipeline-artifacts/container-scan-reports/redhat/ubi/ubi7/7.7/2019-10-23T060831.772_1443/ubi7-7.7.tar) and get the following when trying to install a package via yum in the running container. I had previously observed a failed container build which uses the UBI7 as the base image which is why I began investigating along this path.
$ docker run -it nexus-docker.52.61.140.4.nip.io/redhat/ubi/ubi7:7.7
[root@e7b3f61e7928 /]# yum install openssl Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
ubi-7 | 3.8 kB 00:00:00
One of the configured repositories failed (Red Hat Universal Base Image 7 Server (RPMs)), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=ubi-7 ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable ubi-7
or
subscription-manager repos --disable=ubi-7
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=ubi-7.skip_if_unavailable=true
failure: repodata/repomd.xml.asc from ubi-7: [Errno 256] No more mirrors to try. https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found [root@e7b3f61e7928 /]# yum repolist Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
ubi-7 | 3.8 kB 00:00:00
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
ubi-7/x86_64 | 3.8 kB 00:00:00
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/atomic/7/7Server/x86_64/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
ubi-7-rhah/x86_64 | 3.7 kB 00:00:00
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/devtools/1/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
ubi-7-server-devtools-rpms/x86_64 | 3.8 kB 00:00:00
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/extras/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
ubi-7-server-extras-rpms/x86_64 | 3.7 kB 00:00:00
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/optional/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
ubi-7-server-optional-rpms/x86_64 | 3.8 kB 00:00:00
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/rhscl/1/os/repodata/repomd.xml.asc: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
ubi-server-rhscl-7-rpms/x86_64 | 3.8 kB 00:00:00
repo id repo name status
ubi-7/x86_64 Red Hat Universal Base Image 7 Server (RPMs) 0
ubi-7-rhah/x86_64 Red Hat Universal Base Image Atomic Host (RPMs) 0
ubi-7-server-devtools-rpms/x86_64 Red Hat Developer Tools RPMs for Red Hat Universal Base Image 7 Server 0
ubi-7-server-extras-rpms/x86_64 Red Hat Universal Base Image 7 Server - Extras (RPMs) 0
ubi-7-server-optional-rpms/x86_64 Red Hat Universal Base Image 7 Server - Optional (RPMs) 0
ubi-server-rhscl-7-rpms/x86_64 Red Hat Software Collections RPMs for Red Hat Universal Base Image 7 Server 0
repolist: 0
[root@e7b3f61e7928 /]#