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

incorrect format for mappting when use mirror2disk with dry-run

XMLWordPrintable

    • Important
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Customer Facing

      Description of problem:

      when use mirror2disk with dry-run the ouput mapping is incorrect. 
      

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

      
      

      How reproducible:

      always 

      Steps to Reproduce:

      1. with imagesetconfig: 
      cat config-addimage.yaml
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        additionalImages:
         - name: quay.io/openshifttest/bench-army-knife@sha256:078db36d45ce0ece589e58e8de97ac1188695ac155bc668345558a8dd77059f6
      2. run the mirror2disk with dry-run :
      `oc-mirror --config config-addimage.yaml file:// --dry-run`
      
      
      

      Actual results:

      2. check the mapping , the format if incorrect , should with "file://"
      cat oc-mirror-workspace/mapping.txt
      quay.io/openshifttest/bench-army-knife@sha256:078db36d45ce0ece589e58e8de97ac1188695ac155bc668345558a8dd77059f6=openshifttest/bench-army-knife:latest
      

      Expected results:

      correct mapping should be: 
      cat oc-mirror-workspace/mapping.txt 
      quay.io/openshifttest/bench-army-knife@sha256:078db36d45ce0ece589e58e8de97ac1188695ac155bc668345558a8dd77059f6=file://openshifttest/bench-army-knife:latest
      

      Additional info:

              jhunkins@redhat.com John Hunkins (Inactive)
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: