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

opm index prune fails on Mac

XMLWordPrintable

    • Quality / Stability / Reliability
    • None
    • None
    • None
    • Moderate
    • None
    • Unspecified
    • None
    • None
    • Rejected
    • None
    • None
    • If docs needed, set a value
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When following the instructions to mirror content into a disconnected environment and prune an index:

      https://docs.openshift.com/container-platform/4.10/operators/admin/olm-restricted-networks.html#olm-pruning-index-image_olm-restricted-networks

      ... Step 4 fails if run on a Mac.

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

      Version: version.Version

      {OpmVersion:"b576eef43", GitCommit:"b576eef43e0d4c3745435a068b8bf42ec347eda3", BuildDate:"2022-04-11T10:00:51Z", GoOs:"darwin", GoArch:"amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      opm index prune --debug --from-index "registry.redhat.io/redhat/redhat-operator-index:v4.10" --packages 'advanced-cluster-management' --tag myindex:v4.10

      Actual results:

      exits with error code 125 and this message:

      error copying to host: copier: put: error creating "/Users/mhrivnak/index_tmp_377180214/root/.bash_logout": copier: put: error opening file "/Users/mhrivnak/index_tmp_377180214/root/.bash_logout" for writing: open /Users/mhrivnak/index_tmp_377180214/root/.bash_logout: permission denied

      Expected results:

      succeeds

      Additional info:

      More details in upstream bug reports:

      https://github.com/operator-framework/operator-registry/issues/947
      https://github.com/containers/podman/issues/13992

              rh-ee-cchantse Catherine Chan-Tse
              mhrivnak@redhat.com Michael Hrivnak
              None
              None
              Jian Zhang Jian Zhang
              None
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: