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

[v1] Disk to Mirror or use of targetCatalog requires access to internet for catalog images

XMLWordPrintable

    • Important
    • No
    • CLID Sprint 254
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

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

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

      Description of problem:

      when use targetCatalog, mirror failed with error: 
      error: error rebuilding catalog images from file-based catalogs: error copying image docker://registry.redhat.io/abc/redhat-operator-index:v4.13 to docker://localhost:5000/abc/redhat-operator-index:v4.13: initializing source docker://registry.redhat.io/abc/redhat-operator-index:v4.13: (Mirrors also failed: [localhost:5000/abc/redhat-operator-index:v4.13: pinging container registry localhost:5000: Get "https://localhost:5000/v2/": http: server gave HTTP response to HTTPS client]): registry.redhat.io/abc/redhat-operator-index:v4.13: reading manifest v4.13 in registry.redhat.io/abc/redhat-operator-index: unauthorized: access to the requested resource is not authorized 

       

       

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

      oc-mirror 4.16

      How reproducible:

      always

      Steps to Reproduce:

      1) Use following isc to do mirror2mirror for v1:    
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /tmp/case60597
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.13
          targetCatalog: abc/redhat-operator-index
          packages:
          - name: servicemeshoperator  
      `oc-mirror --config config.yaml docker://localhost:5000 --dest-use-http`
      
      

       

      Actual results: 

      1) mirror failed with error:
      info: Mirroring completed in 420ms (0B/s)
      error: error rebuilding catalog images from file-based catalogs: error copying image docker://registry.redhat.io/abc/redhat-operator-index:v4.13 to docker://localhost:5000/abc/redhat-operator-index:v4.13: initializing source docker://registry.redhat.io/abc/redhat-operator-index:v4.13: (Mirrors also failed: [localhost:5000/abc/redhat-operator-index:v4.13: pinging container registry localhost:5000: Get "https://localhost:5000/v2/": http: server gave HTTP response to HTTPS client]): registry.redhat.io/abc/redhat-operator-index:v4.13: reading manifest v4.13 in registry.redhat.io/abc/redhat-operator-index: unauthorized: access to the requested resource is not authorized

      Expected results:

      1) no error.

      Additional information:

      compared with oc-mirror 4.15.9, can't reproduce this issue 

            luzuccar@redhat.com Luigi Mario Zuccarelli
            openshift-crt-jira-prow OpenShift Prow Bot
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: