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

Running oc-mirror as root affects operator index image creation

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • CLID Sprint 276, CLID Sprint 277
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          When running oc-mirror as root the operator index image that is created does not have the correct permissions for the Catalog workload to run in Openshift.  There is no warning, error or indication from oc-mirror that running as root will lead to this.   

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          100%

      Steps to Reproduce:

          1.Run oc-mirror v2 to disk as root
          2.mirror from disk to target registry
          3.Configure OLM to utilize mirror content as source
          

      Actual results:

      openshift-marketplace workloads for catalogs are not able to started due to permission errors when pulling the image.  Pods never start and the Operator Hub is not functional.  Specific error message is "failed to load or rebuild cache: failed to rebuild cache: stat .: permission denied"    

      Expected results:

      oc-mirror checks that is is running as root and prevents the mirroring process from proceeding if it is with an error message or warning.

      Additional info:

       

              rh-ee-aguidi Alex Guidi
              rhn-gps-kjackson Keith Jackson
              None
              None
              May Xu May Xu
              None
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: