Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-11181

add entitlement symlinks

XMLWordPrintable

    • 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
    • Hide

      None

      Show
      None

      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)
      [....]
      

            hhei@redhat.com Huijing Hei
            walters@redhat.com Colin Walters
            Michael Nguyen Michael Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: