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

Not able to mirror OCI base image for example kubeturbo-certified's image

XMLWordPrintable

    • Important
    • No
    • CFE Sprint 241
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

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

      Description of problem:

      1. When I try to get  kubeturbo-certified operator mirrored  but getting below error
      
      ~~~
      To upload local images to a registry, run:
      
              oc adm catalog mirror file://redhat/certified-operator-index:v4.12 REGISTRY/REPOSITORY
      <dir>
        turbonomic/kubeturbo-operator-bundle
          blobs:
            registry.connect.redhat.com/turbonomic/kubeturbo-operator-bundle sha256:afe60ced561d96e923cb44b0888f770126cacf593bba7ea4956d85f9c1300353 3.325KiB
            registry.connect.redhat.com/turbonomic/kubeturbo-operator-bundle sha256:ace9321755faaf37fdfcd871ee58beaaca6ebf5f3dfcff6dc0e31986b4c0c9b8 17.5KiB
          manifests:
            sha256:0deece0b93cd3b93fb39693b13dd9ce11c0b62e3932a75cae6ee73af67c21d08 -> c002f89f
        stats: shared=0 unique=2 size=20.83KiB ratio=1.00
      
      error: unable to retrieve source image icr.io/cpopen/kubeturbo-operator manifest sha256:cc6499b8c5c7a3dfd829d75d7bc73fca6c467bfb5e3235e62018e7ef18220a21: unknown: OCI index found, but accept header does not support OCI indexes
      error: an error occurred during planning
      ~~~
      
      2. Tried with --use-oci-feature --oci-feature-action=copy  , that did not help too #
      ~~~
      sh-4.4# oc-mirror --config certified-operator-index-imageset-conf-v4.12.yaml  --use-oci-feature --oci-feature-action=copy file://tmp/operator/error: unable to retrieve source image icr.io/cpopen/kubeturbo-operator manifest sha256:cc6499b8c5c7a3dfd829d75d7bc73fca6c467bfb5e3235e62018e7ef18220a21: unknown: OCI index found, but accept header does not support OCI indexes
      error: copying images an error occurred during planning
      ~~~
      
      

       

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. create below ImageSetConfiguration
      ~~~ 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /tmp/mirror
      mirror:
        operators:
          - catalog: registry.redhat.io/redhat/certified-operator-index:v4.12
            targetName: certified-operator-index-06-20-2023-00-00-00
            packages:
              - name: kubeturbo-certified
                channels:
                  - name: 'stable'
                    maxVersion: '8.9.2'
                    minVersion: '8.9.2' ~~~
      
      2. Mirror the images using oc-mirror to hit the same error:
      
      oc-mirror --config certified-operator-index-imageset-conf-v4.12.yaml file://tmp/operator/
      
      $ oc-mirror --config certified-operator-index-imageset-conf-v4.12.yaml  --use-oci-feature --oci-feature-action=copy file://tmp/operator/ 

      Actual results:

       

      Expected results:

       

      Additional info:

       

            rh-ee-aguidi Alex Guidi
            openshift-crt-jira-prow OpenShift Prow Bot
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: