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

[v2] While mirroring rebuilt catalog with oc-mirror receiving "Instructed to preserve digests" error

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • CLID Sprint 283, CLID Sprint 284
    • 2
    • Proposed
    • Bug Fix
    • Hide
      Before this update, catalogs rebuilt by `oc-mirror` were exclusively in Open Container Initiative (OCI) format, which created compatibility issues because certain container registries do not accept this specific format. This limitation often resulted in failed image uploads or registry errors during the mirroring process. With this release, the code has been updated to allow for the conversion of the catalog format to one that is accepted by the target container registry. As a result, the conversion of catalog images generated by `oc-mirror` no longer fail. However, it is important to note that OCI images not built by `oc-mirror` continue to fail. (link:https://issues.redhat.com/browse/OCPBUGS-74981[OCPBUGS-74981])
      Show
      Before this update, catalogs rebuilt by `oc-mirror` were exclusively in Open Container Initiative (OCI) format, which created compatibility issues because certain container registries do not accept this specific format. This limitation often resulted in failed image uploads or registry errors during the mirroring process. With this release, the code has been updated to allow for the conversion of the catalog format to one that is accepted by the target container registry. As a result, the conversion of catalog images generated by `oc-mirror` no longer fail. However, it is important to note that OCI images not built by `oc-mirror` continue to fail. (link: https://issues.redhat.com/browse/OCPBUGS-74981 [ OCPBUGS-74981 ])
    • None
    • None
    • None
    • None

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

      Description of problem:

          Mirroring the rebuilt catalog to a nexus that does not support OCI format returns an error

       
      How reproducible:

      Run oc-mirror v2 mirror to mirror with target registry nexus 3.37.3-02 with the following image set config:   
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
          packages:
            - name: 3scale-operator
              channels:
              - name: threescale-2.16
              - name: threescale-2.15
                minVersion: 0.12.2
                maxVersion: 0.12.2
      
      
      

      Actual results:

          2025/12/23 22:30:03  [ERROR]  : [Worker] error mirroring image docker://registry.redhat.io/redhat/redhat-operator-index:v4.17 error: Manifest list must be converted to type "application/vnd.docker.distribution.manifest.list.v2+json" to be written to destination, but we cannot modify it: "Instructed to preserve digests"

      Expected results:

          No Error should be returned

      Additional info:

          

              rh-ee-aguidi Alex Guidi
              rh-ee-aguidi Alex Guidi
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: