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

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

XMLWordPrintable

    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      This is a clone of issue OCPBUGS-39375. The following is the description of the original issue:

      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
            openshift-crt-jira-prow OpenShift Prow Bot
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: