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

oc-mirror errors out showing it trying to fetch from registry.redhat.io, in air-gapped env.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.18.z
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • CLID Sprint 272
    • 1
    • In Progress
    • Bug Fix
    • Hide
      The `oc-mirror v2` was not using the correct filtered catalog during its operations leading to errors such as including more operators than specified in the configuration, and trying to connect to the catalog registry during disk-to-mirror workflows even in air-gapped environments. With this release, the correct filtered catalog is used. (link:https://issues.redhat.com/browse/OCPBUGS-57784[OCPBUGS-57784])
      Show
      The `oc-mirror v2` was not using the correct filtered catalog during its operations leading to errors such as including more operators than specified in the configuration, and trying to connect to the catalog registry during disk-to-mirror workflows even in air-gapped environments. With this release, the correct filtered catalog is used. (link: https://issues.redhat.com/browse/OCPBUGS-57784 [ OCPBUGS-57784 ])
    • None
    • None
    • None
    • None

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

      Description of problem:

      Run oc-mirror d2m in an air-gapped env. 
      
      oc-mirror shows error:
      
      2025/06/13 18:43:09 [ERROR] : collection error: collect catalog “registry.redhat.io/redhat/redhat-operator-index:v4.17”: initializing source docker://registry.redhat.io/redhat/redhat-operator-index:v4.17: pinging container registry registry.redhat.io: Get “http://registry.redhat.io/v2/”: net/http: HTTP/1.x transport connection broken: unexpected EOF

       

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

          4.18.0-202506021034.p0.g1b20848.assembly.stream.el9-1b20848

      How reproducible:

          Always

      Steps to Reproduce:

          1. Do m2d
          2. Copy ISC and tar file into the air-gapped env.
          3. Load the tar file using d2m
      
      Config:
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        platform:
          channels:
          - name: stable-4.17
            minVersion: 4.17.16
            maxVersion: 4.17.16
            type: ocp
          graph: true
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
          packages:
          - name: kiali-ossm
            channels:
            - name: stable
          - name: web-terminal
            channels:
            - name: fast
          
      
      $ ls -l 
      total 28464656
      -rw-------.  1 steve steve         828 Jun 14 11:41 imageset-config-save.yaml
      -rw-r--r--.  1 steve steve 29147250688 Jun 13 13:40 mirror_000001.tar
      drwxr-xr-x. 10 steve steve         165 Jun 14 11:42 working-dir
      
      Debug output:
      https://redhat-internal.slack.com/archives/C02JW6VCYS1/p1749872435013999?thread_ts=1749811523.774629&cid=C02JW6VCYS1 

       

      Actual results:

          https://redhat-internal.slack.com/archives/C02JW6VCYS1/p1749872435013999?thread_ts=1749811523.774629&cid=C02JW6VCYS1

      Expected results:

          I would expect oc-mirror to load all images from d2m without error. 

      Additional info:

          https://redhat-internal.slack.com/archives/C02JW6VCYS1/p1749811523774629 

              rdossant Rafael Fonseca dos Santos
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              May Xu May Xu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: