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

oc command won't mirror images with different name, but same layers

XMLWordPrintable

    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      Given 2 images with different names, but same layers, "oc image mirror" will only mirror 1 of them. For example:
      
      $ cat images.txt
      quay.io/openshift/community-e2e-images:e2e-33-registry-k8s-io-e2e-test-images-resource-consumer-1-13-LT0C2W4wMzShSeGS quay.io/bertinatto/test-images:e2e-33-registry-k8s-io-e2e-test-images-resource-consumer-1-13-LT0C2W4wMzShSeGS
      quay.io/openshift/community-e2e-images:e2e-31-registry-k8s-io-e2e-test-images-resource-consumer-1-13-LT0C2W4wMzShSeGS quay.io/bertinatto/test-images:e2e-31-registry-k8s-io-e2e-test-images-resource-consumer-1-13-LT0C2W4wMzShSeGS
      
      $ oc image mirror -f images.txt
      quay.io/
        bertinatto/test-images
          manifests:
            sha256:298dcd808e27fbf96614e4c6f06730f22964dce41dcdc7bf21096c42411ba773 -> e2e-33-registry-k8s-io-e2e-test-images-resource-consumer-1-13-LT0C2W4wMzShSeGS
        stats: shared=0 unique=0 size=0B
      
      phase 0:
        quay.io bertinatto/test-images blobs=0 mounts=0 manifests=1 shared=0
      
      info: Planning completed in 2.6s
      sha256:298dcd808e27fbf96614e4c6f06730f22964dce41dcdc7bf21096c42411ba773 quay.io/bertinatto/test-images:e2e-33-registry-k8s-io-e2e-test-images-resource-consumer-1-13-LT0C2W4wMzShSeGS
      info: Mirroring completed in 240ms (0B/s)    

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

      4.18    

      How reproducible:

      Always    

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

      Only one of the images were mirrored.

      Expected results:

      Both images should be mirrored.     

      Additional info:

          

              aguclu@redhat.com Arda Guclu
              fbertina@redhat.com Fabio Bertinatto
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: