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

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

XMLWordPrintable

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

      None

      Show
      None
    • Hide
      oc-mirror plugin v2 was unable to mirror catalogs from archive to mirror, that is, disk-to-mirror in fully disconnected environments. This issue also impacted catalogs that specified a `targetCatalog` in the `ImageSetConfiguration` file.
      Now, oc-mirror plugin v2 can mirror catalogs in fully disconnected environments and enables the use of `targetCatalog` as intended.
      (link:https://issues.redhat.com/browse/OCPBUGS-34521[*OCPBUGS-34521*])
      Show
      oc-mirror plugin v2 was unable to mirror catalogs from archive to mirror, that is, disk-to-mirror in fully disconnected environments. This issue also impacted catalogs that specified a `targetCatalog` in the `ImageSetConfiguration` file. Now, oc-mirror plugin v2 can mirror catalogs in fully disconnected environments and enables the use of `targetCatalog` as intended. (link: https://issues.redhat.com/browse/OCPBUGS-34521 [* OCPBUGS-34521 *])
    • Bug Fix
    • Done
    • Release Notes
    • Customer Facing

      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 

            skhoury@redhat.com Sherine Khoury
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Subhashini T K Subhashini T K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: