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

Mirroring to an enclave fails with duplicate channel error for operators

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • CLID Sprint 283
    • 1
    • Done
    • Bug Fix
    • Hide
      * Before this update, a duplicate channel in catalog.json caused a mirroring failure. As a consequence, mirroring operation failed for some Operators due to a duplicate channel error. With this release, the mirroring issue is fixed. As a result, mirroring to enclaves succeeds without duplicate channel errors in version 4.21.0 and later. (link:https://issues.redhat.com/browse/OCPBUGS-74577[OCPBUGS-74577])

      What: running oc-mirror in an enclave could result in the error "package has duplicated channel" for some operators from a RedHat catalog
      Fix: the code no longer generates catalog index images with duplicated operator configs
      Note: if the problem persists, it might be necessary to mirror again from the original registry to the enclave registry.
      Show
      * Before this update, a duplicate channel in catalog.json caused a mirroring failure. As a consequence, mirroring operation failed for some Operators due to a duplicate channel error. With this release, the mirroring issue is fixed. As a result, mirroring to enclaves succeeds without duplicate channel errors in version 4.21.0 and later. (link: https://issues.redhat.com/browse/OCPBUGS-74577 [ OCPBUGS-74577 ]) What: running oc-mirror in an enclave could result in the error "package has duplicated channel" for some operators from a RedHat catalog Fix: the code no longer generates catalog index images with duplicated operator configs Note: if the problem persists, it might be necessary to mirror again from the original registry to the enclave registry.
    • None
    • None
    • None
    • None

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

      Description of problem:

      Mirroring to an enclave fails with duplicate channel error for operators like below.
      
      level=fatal msg="failed to load or rebuild cache: failed to rebuild cache: build package index: process package \"container-security-operator\": package \"container-security-operator\" has duplicate channel \"stable-3.15\""
          

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

      4.20 and other supported versions
          

      How reproducible:

      100%
          

      Steps to Reproduce:

          1. Mirror to a registry from source with imageset consisting of a few operators
          2. Try mirroring to an enclave from the mirror registry
          3. It fails with the said error
          

      Actual results:

      Miroring fails with duplicate channel for some operators as the catalog.json created for the operators contain duplicate channel
          

      Expected results:

      Mirroring should complete without the error
          

      Additional info:

      
          

              rdossant Rafael Fonseca dos Santos
              rhn-support-alosingh Alok Singh
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: