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

Oc-mirror always fail when push to quay.io

XMLWordPrintable

    • Important
    • None
    • CLID Sprint 253, CLID Sprint 254
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress
    • Customer Facing

      Description of problem:

      Oc-mirror always fail when push to quay.io

       

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

      oc-mirror version 
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.16.0-202403070215.p0.gc4f8295.assembly.stream.el9-c4f8295", GitCommit:"c4f829512107f7d0f52a057cd429de2030b9b3b3", GitTreeState:"clean", BuildDate:"2024-03-07T03:46:24Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1)  Use following imagesetconfigure to do mirrorToDisk:
      cat config-full.yaml
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        additionalImages:
         - name: quay.io/openshifttest/bench-army-knife@sha256:078db36d45ce0ece589e58e8de97ac1188695ac155bc668345558a8dd77059f6
        platform:
          channels:
          - name: stable-4.12
            type: ocp
          graph: true
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12
            packages:
             - name: elasticsearch-operator
      
      `oc-mirror --config config-full.yaml  file://outfull --v2`
      
      
      
        2)  Do diskToMirror against to quay.io cat config-oci.yaml `oc-mirror --config config-full.yaml  --from file://outfull --v2 docker://quay.io/zhouying7780/oc-mirrortest`   

      Actual results: 

      2) diskToMirror against to quay.io always failed:
        oc-mirror --config config-full.yaml  --from file://outfull --v2 docker://quay.io/zhouying7780/oc-mirrortest
      --v2 flag identified, flow redirected to the oc-mirror v2 version. PLEASE DO NOT USE that. V2 is still under development and it is not ready to be used.
      2024/03/25 07:40:14  [INFO]   : mode diskToMirror      
      2024/03/25 07:40:15  [INFO]   : local storage registry will log to /app1/0321/outfull/working-dir/logs/registry.log
      2024/03/25 07:41:58  [INFO]   : starting local storage on localhost:55000
      2024/03/25 07:41:58  [INFO]   : adding graph data image      
      2024/03/25 07:41:58  [INFO]   : total release images to copy 185
      2024/03/25 07:41:58  [INFO]   : copying operator image registry.redhat.io/redhat/redhat-operator-index:v4.12
      2024/03/25 07:41:58  [INFO]   : manifest 7b9891532a76194c1b18698518abad9be4aca7f1152ac73f450aa8bfadef538f
      2024/03/25 07:41:58  [INFO]   : label /configs  
      2024/03/25 07:41:58  [INFO]   : extract directory exists (nop)
      2024/03/25 07:42:05  [INFO]   : related images length 2
      2024/03/25 07:42:05  [INFO]   : images to copy (before duplicates) 9
      2024/03/25 07:42:05  [INFO]   : total operator images to copy 9
      2024/03/25 07:42:05  [INFO]   : total additional images to copy 1
      2024/03/25 07:42:05  [INFO]   : images to mirror 195
      2024/03/25 07:42:05  [INFO]   : batch count 24
      2024/03/25 07:42:05  [INFO]   : batch index 0
      2024/03/25 07:42:05  [INFO]   : batch size 8
      2024/03/25 07:42:05  [INFO]   : remainder size 3
      2024/03/25 07:42:05  [INFO]   : starting batch 0
      2024/03/25 07:42:32  [INFO]   : completed batch 0
      2024/03/25 07:42:32  [INFO]   : starting batch 1
      2024/03/25 07:42:38  [INFO]   : completed batch 1
      2024/03/25 07:42:38  [INFO]   : starting batch 2
      2024/03/25 07:42:44  [INFO]   : completed batch 2
      2024/03/25 07:42:44  [ERROR]  : [Worker] errArray trying to reuse blob sha256:cda73b689183c2c03827acdf410009807b4a413e27215947b6c211ea7437f56a at destination: too many requests to registry
      2024/03/25 07:42:44  [ERROR]  : [Worker] error in batch - refer to console logs

      Expected results:

      2) oc-mirror should not fail when mirror to quay.io

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

                Created:
                Updated:
                Resolved: