The entitlement contains the information which repos are available for the entitlement. List of available repos:
rct cat-cert /etc/pki/entitlement/xxxxxx.pem
Not all images are easily accessible, in many cases you need access to registry.redhat.io.
You can provide the access to registry.redhat.io in the namespace or use the available access in the openshift namespace.
The entitlement contains the information which repos are available for the entitlement. List of available repos:
rct cat-cert /etc/pki/entitlement/3551555797900109932.pem
$ oc rsh dc/rhel
sh-4.2# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: %(ca_cert_dir)sredhat-uep.pem
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#77 - "Problem with the SSL CA cert (path? access rights?)"
Trying other mirror.
repolist: 0
sh-4.2#
Info
Problem:
Delete the rm /etc/rhsm-host first, rhel 7 can not handle an /etc/rhsm-host/ without an rhsm.conf.
Deleting of /etc/rhsm-host force the package managment to use /etc/rhsm provided by the container image together with entitlement mount.
1 2 3 4 5 6 7 8 91011
sh-4.2# rm /etc/rhsm-host`
sh-4.2# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms
(1/3): rhel-7-server-rpms/7Server/x86_64/group
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo
(3/3): rhel-7-server-rpms/7Server/x86_64/primary_db
repo id repo name status
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs)28807
repolist: 28807
sh-4.2#