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

oc-mirror "hangs" when the tar file is 0 bytes

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • None
    • None
    • None
    • CLID Sprint 274
    • 1
    • In Progress
    • Bug Fix
    • Hide
      * Before this update, when you cloned a .tar file with zero length, the `oc-mirror` ran indefinitely due to an empty archive file. As a consequence, no progress occurred when you mirrored a 0-byte .tar file. With this release, 0-byte tar files are detected and reported as errors, which prevents the `oc-mirror` from hanging. (link:https://issues.redhat.com/browse/OCPBUGS-59864[OCPBUGS-59864])
      Show
      * Before this update, when you cloned a .tar file with zero length, the `oc-mirror` ran indefinitely due to an empty archive file. As a consequence, no progress occurred when you mirrored a 0-byte .tar file. With this release, 0-byte tar files are detected and reported as errors, which prevents the `oc-mirror` from hanging. (link: https://issues.redhat.com/browse/OCPBUGS-59864 [ OCPBUGS-59864 ])
    • None
    • None
    • None
    • None

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

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

      Description of problem:

          I somehow created a tar file which was 0 bytes in length and when I tried to mirror that file into a registry the oc-mirror command ran for almost 10 hours with no progress.

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

      Current HEAD from GitHub    

      How reproducible:

          Always

      Steps to Reproduce:

          1. Mirror some containers to a folder
          2. Replace the tar file with a 0 byte file
          3. Attempt to mirror the files to a registry
          

      Actual results:

          oc-mirror seems to run forever without making any progress

      Expected results:

          oc-mirror reports the 0 byte file and exits

      Additional info:

          

              rdossant Rafael Fonseca dos Santos
              rhn-gps-josphill Joseph Phillips
              None
              None
              May Xu May Xu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: