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

oc-mirror can't support the ibm catalog as oci format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 4.18
    • oc-mirror
    • Moderate
    • Yes
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      *Cause*: What actions or circumstances cause this bug to present.
      *Consequence*: What happens when the bug presents.
      *Fix*: What was done to fix the bug.
      *Result*: Bug doesn’t present anymore.
      Show
      *Cause*: What actions or circumstances cause this bug to present. *Consequence*: What happens when the bug presents. *Fix*: What was done to fix the bug. *Result*: Bug doesn’t present anymore.
    • Bug Fix
    • In Progress

      Description of problem:

      oc-mirror can't support the ibm catalog as oci format

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

      oc-mirror version
      W1121 02:41:40.686030  157602 mirror.go:102] ⚠️  oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.18.0-202411191706.p0.g956fc31.assembly.stream.el9-956fc31", GitCommit:"956fc318cc67769aedb2db8c0c4672bf7ed9f909", GitTreeState:"clean", BuildDate:"2024-11-19T18:08:35Z", GoVersion:"go1.22.7 (Red Hat 1.22.7-1.el9_5) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

           Always
          

      Steps to Reproduce:

      1. copy the ibm as oci format to localhost:
        `skopeo copy --all --format v2s2 docker://icr.io/cpopen/ibm-bts-operator-catalog@sha256:866f0212eab7bc70cc7fcf7ebdbb4dfac561991f6d25900bd52f33cd90846adf oci://test/ibm-catalog  --remove-signatures --insecure-policy`
      
      2. run the mirror2mirror with following isc:
      apiVersion: mirror.openshift.io/v2alpha1
      kind: ImageSetConfiguration
      mirror:
        operators:
        - catalog: oci:///test/ibm-catalog
      
        3. run the mirror2mirror command :  
      oc mirror -c config-73124.yaml docker://xxx.openshift.com --v2 --workspace file:///tmp/case73124  --dest-tls-verify=false

       

      Actual results:

      2. hit error :    
       Running 'oc mirror -c /tmp/fixture-testdata-dir1764442362/test/extended/testdata/workloads/config-73124.yaml docker://my-route-e2e-test-ocmirrorv2-xqb4f.apps.yinzhou1121.qe.devcluster.openshift.com --v2 --workspace file:///tmp/case73124 --authfile /tmp/case73124/.dockerconfigjson --dest-tls-verify=false'
        I1121 02:51:02.153880 157677 client.go:844] Error running /usr/local/bin/oc mirror -c /tmp/fixture-testdata-dir1764442362/test/extended/testdata/workloads/config-73124.yaml docker://my-route-e2e-test-ocmirrorv2-xqb4f.apps.yinzhou1121.qe.devcluster.openshift.com --v2 --workspace file:///tmp/case73124 --authfile /tmp/case73124/.dockerconfigjson --dest-tls-verify=false:
        2024/11/21 02:51:02  [WARN]   : ⚠️  --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready.
        2024/11/21 02:51:02  [INFO]   : 👋 Hello, welcome to oc-mirror
        2024/11/21 02:51:02  [INFO]   : ⚙️  setting up the environment for you...
        2024/11/21 02:51:02  [INFO]   : 🔀 workflow mode: mirrorToMirror 
        2024/11/21 02:51:02  [INFO]   : 🕵️  going to discover the necessary images...
        2024/11/21 02:51:02  [INFO]   : 🔍 collecting release images...
        2024/11/21 02:51:02  [INFO]   : 🔍 collecting operator images...
        2024/11/21 02:51:02  [INFO]   : 🔍 collecting additional images...
        2024/11/21 02:51:02  [INFO]   : 🔍 collecting helm images...
        2024/11/21 02:51:02  [INFO]   : 🔂 rebuilding catalogs
        2024/11/21 02:51:02  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
        2024/11/21 02:51:02  [ERROR]  : unable to rebuild catalog oci:///tmp/case73124/working-dir/operator-catalogs/ibm-catalog/866f0212eab7bc70cc7fcf7ebdbb4dfac561991f6d25900bd52f33cd90846adf/catalog-image: filtered declarative config not found

      Expected results:

      2. no error

      Additional info:

       

       

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

                Created:
                Updated:
                Resolved: