-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.13.0
-
Moderate
-
No
-
3
-
Sprint 235 - Update&Remoting, Sprint 236 - Update&Remoting, Sprint 237 - Update&Remoting, Sprint 238 - Update&Remoting, Sprint 239 - Update&Remoting, Sprint 240 - Update&Remoting, Sprint 241 - Update&Remoting, Sprint 242 - Update&Remoting, 249 - Core Packages
-
9
-
False
-
Seems the original issue is fixed by PR
Origin:
See https://github.com/openshift/rhcos-image-layering-examples/pull/3#discussion_r1153632702
ln -s /run/secrets/etc-pki-entitlement /etc/pki/entitlement-host ln -s /run/secrets/rhsm /etc/rhsm-host
Redefine:
When running entitled builds using SharedSecret objects according to doc with rhcos container, rpm-ostree will not be able to access the repos. The workaround is remove /etc/rhsm-host.
For details see rhn-support-dornelas's comment
bash-5.1# ls -l /etc/rhsm-host lrwxrwxrwx. 2 root root 19 Jan 1 1970 /etc/rhsm-host -> ../run/secrets/rhsm bash-5.1# rpm-ostree install libreswan Enabled rpm-md repositories: rhel-9-for-x86_64-baseos-rpms rhel-9-for-x86_64-appstream-rpms Updating metadata for 'rhel-9-for-x86_64-baseos-rpms'... done error: Updating rpm-md repo 'rhel-9-for-x86_64-baseos-rpms': cannot update repo 'rhel-9-for-x86_64-baseos-rpms': Cannot download repomd.xml: Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/baseos/os/repodata/repomd.xml [error setting certificate file: /etc/rhsm-host-host/ca/redhat-uep.pem]; Last error: Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/baseos/os/repodata/repomd.xml [error setting certificate file: /etc/rhsm-host-host/ca/redhat-uep.pem] bash-5.1# rm /etc/rhsm-host bash-5.1# rpm-ostree install libreswan Enabled rpm-md repositories: rhel-9-for-x86_64-baseos-rpms rhel-9-for-x86_64-appstream-rpms Updating metadata for 'rhel-9-for-x86_64-baseos-rpms'... done Updating metadata for 'rhel-9-for-x86_64-appstream-rpms'... done Importing rpm-md... done rpm-md repo 'rhel-9-for-x86_64-baseos-rpms'; generated: 2023-04-14T16:58:41Z solvables: 3584 rpm-md repo 'rhel-9-for-x86_64-appstream-rpms'; generated: 2023-04-17T14:03:48Z solvables: 11362 Resolving dependencies... done Will download: 9 packages (3.7 MB) [....]
- is blocked by
-
RHEL-14224 Stop replacing /etc/rhsm-host/ca to /etc/rhsm-host-host/ca if ca cert dir is already under /etc/rhsm-host
- Closed
-
RHEL-1451 Running inside a container where rhsm.conf is missing on RHCOS, repo_ca_cert gets set to a bogus value: /etc/rhsm-host-host/ca/redhat-uep.pem
- Closed
-
RHEL-9409 Break out rhsm.conf into subpackage subscription-manager-rhsm-conf
- Closed