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

oc-mirror failed on mode diskToMirror with error :errArray initializing source docker://localhost:5000/openshift/graph-image:latest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.15.0
    • 4.15.0
    • oc-mirror
    • Important
    • None
    • CFE Sprint 246
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Customer Facing

      Description of problem:

      When use oc-mirror with v2 format , mirror from disk to mirror , will hit error :
      2023/11/14 03:29:50  [ERROR]  : [Worker] errArray initializing source docker://localhost:5000/openshift/graph-image:latest: reading manifest latest in localhost:5000/openshift/graph-image: manifest unknown
      2023/11/14 03:29:50  [ERROR]  : [Worker] error in batch - refer to console logs

       

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

       

      How reproducible:

      sometimes

      Steps to Reproduce:

      Using the advanced cluster management package as an example.
      
      1. with imagesetconfig:
      cat config.yaml 
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        platform:
          channels:
            - name: stable-4.13
              minVersion: 4.13.17
              maxVersion: 4.13.18
          graph: true
      2. mirror to disk by command:
      oc-mirror --v2 --config config.yaml  file://out
      3. mirror from disk to mirror:
      ./oc-mirror --from file://out docker://ec2-18-191-168-65.us-east-2.compute.amazonaws.com:5000/ocp  --v2  --config config.yaml   

      Actual results: 

      ./oc-mirror --from file://out docker://ec2-18-191-168-65.us-east-2.compute.amazonaws.com:5000/ocp  --v2  --config config.yaml
      --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. 
      2023/11/14 03:10:03  [INFO]   : mode diskToMirror 
      2023/11/14 03:10:03  [INFO]   : local storage registry will log to /app1/1106/logs/registry.log
      2023/11/14 03:10:03  [INFO]   : starting local storage on :5000
      2023/11/14 03:10:03  [INFO]   : adding graph data image
      
      ....
      2023/11/14 03:29:50  [INFO]   : starting batch 0 
      2023/11/14 03:29:50  [INFO]   : completed batch 0
      2023/11/14 03:29:50  [ERROR]  : [Worker] errArray initializing source docker://localhost:5000/openshift/graph-image:latest: reading manifest latest in localhost:5000/openshift/graph-image: manifest unknown
      2023/11/14 03:29:50  [ERROR]  : [Worker] error in batch - refer to console logs 

      Expected results:

      No error.

       

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

                Created:
                Updated:
                Resolved: