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

`oc image mirror` copy image to s3 failed when blob already exists in the target location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.21, 4.20.z
    • oc
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • In Progress
    • Bug Fix
    • Due to a bug on "oc adm inspect --all-namespaces" command construction, must-gather was not correctly gathering information about leases, csistoragecapacities and the assisted-installer namespace. This is now fixed.
    • None
    • None
    • None
    • None

      Description of problem:

      When push image to s3 bucket and blobs exit , the command failed and stop the mirror process.
      
      

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

      4.21/4.20
      
      

      How reproducible:

      Always
      

      Steps to Reproduce:

          1. push the first image to s3 bucket:
             `oc image mirror quay.io/openshifttest/deployment-example:v1  s3://s3.amazonaws.com/us-west-2/octestmirror/dce:v1`
          2. Push the second image to s3 bucket:
             `oc image mirror quay.io/openshifttest/deployment-example:v2  s3://s3.amazonaws.com/us-west-2/octestmirror/dce:v2`
          3.
      

      Actual results:

      Unable to push image when blob exit on target location, the second command failed with error : 
      
      oc image mirror quay.io/openshifttest/deployment-example:v2  s3://s3.amazonaws.com/us-west-2/octestmirror/dce:v2
      s3://
        dce
          blobs:
            quay.io/openshifttest/deployment-example sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 32B
            quay.io/openshifttest/deployment-example sha256:9ae5f4bbe2b642cf05d28b058c7e92ef5a30c150dc5a12a5239c56252f385e50 1.183KiB
            quay.io/openshifttest/deployment-example sha256:50438f3701c47319ff1c8189ff19f5a8c779f2479aa2066979b930c7dbb3bde8 1.583MiB
          manifests:
            sha256:32431147e933f7aa80c6e5e94f1573437c5e724f674d5ed1ee8dcd61d29c2869 -> v2
        stats: shared=0 unique=3 size=1.584MiB ratio=1.00phase 0:
        s3.amazonaws.com dce blobs=3 mounts=0 manifests=1 shared=0info: Planning completed in 4.18s
      error: unable to upload blob sha256:50438f3701c47319ff1c8189ff19f5a8c779f2479aa2066979b930c7dbb3bde8 to s3://s3.amazonaws.com/dce: blob already exists in the target location
      info: Mirroring completed in 1.56s (794.6B/s)
       

      Expected results:

      Should able to reuse the exit blobs and push image with error.
      

      Additional info:

       

              aos-workloads-staff Workloads Team Bot Account
              yinzhou@redhat.com Ying Zhou
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: