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

`oc-mirror` does not work as expected relative path for OCI format copy

    XMLWordPrintable

Details

    • Important
    • CFE Sprint 229, CFE Sprint 230
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      This is a clone of issue OCPBUGS-4516. The following is the description of the original issue:

      Description of problem
      `oc-mirror` does not work as expected with relative path for OCI format copy

      How reproducible:
      always

      Steps to Reproduce:
      Copy the operator image with OCI format to localhost with relative path my-oci-catalog;
      cat imageset-copy.yaml
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      mirror:
      operators:

      • catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12
        packages:
      • name: aws-load-balancer-operator

      `oc mirror --config imageset-copy.yaml --use-oci-feature --oci-feature-action=copy oci://my-oci-catalog`

      Actual results:
      2. will create a dir with name : my-file-catalog , but no use for user specified dir: my-oci-catalog
      ls -tl
      total 20
      drwxr-xr-x. 3 root root 4096 Dec 6 13:58 oc-mirror-workspace
      drwxr-xr-x. 3 root root 4096 Dec 6 13:58 olm_artifacts
      drwxr-x---. 3 root root 4096 Dec 6 13:58 my-file-catalog
      drwxr-xr-x. 2 root root 4096 Dec 6 13:58 my-oci-catalog
      rw-rr-. 1 root root 206 Dec 6 12:39 imageset-copy.yaml

      Expected results:
      2. Use the user specified directory .

      Additional info:
      ``oc-mirror --config config-operator.yaml oci:///home/ocmirrortest/noo --use-oci-feature --oci-feature-action=copy` with full path works well.

      Attachments

        Issue Links

          Activity

            People

              rpeoples@redhat.com Ross Peoples
              openshift-crt-jira-prow OpenShift Prow Bot
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: