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

incorrect format for mappting when use mirror2disk with dry-run

    XMLWordPrintable

Details

    • Important
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Customer Facing

    Description

      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:

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: