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

Mirroring to an enclave fails with duplicate channel error for operators

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.20.z
    • oc-mirror
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • CLID Sprint 283
    • 1
    • In Progress
    • Bug Fix
    • Hide
      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
      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:
              3 Start watching this issue

                Created:
                Updated: