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

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

XMLWordPrintable

    • Important
    • None
    • CFE Sprint 234
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      The 4.13.0 OCI FBC feature does not allow using relative path for on disk operator catalogs.
      This results in errors for commands such as `oc mirror --config imageset-copy.yaml --use-oci-feature --oci-feature-action=copy oci://my-oci-catalog`.
      The fix consists of updating the OCI FBC operator code base of oc-mirror to correctly target relative paths.
      Show
      The 4.13.0 OCI FBC feature does not allow using relative path for on disk operator catalogs. This results in errors for commands such as `oc mirror --config imageset-copy.yaml --use-oci-feature --oci-feature-action=copy oci://my-oci-catalog `. The fix consists of updating the OCI FBC operator code base of oc-mirror to correctly target relative paths.
    • Bug Fix
    • In Progress

      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.

            skhoury@redhat.com Sherine Khoury
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: