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

[v2] oc-mirror v2 retry-times parameter does not work when mirroring release images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 4.20
    • 4.18
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • CLID Sprint 270, CLID Sprint 271, CLID Sprint 272, CLID Sprint 274, CLID Sprint 275
    • 5
    • In Progress
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      Description of problem:

      oc-mirror v2 retry parameter (--retry-times 6) does not seem to work. 
      Ex: When the retry count is set to 6, the mirroring process should attempt to re-download any failed image, blob, or manifest up to 6 times before exiting. However, this expected retry behavior does not occur, causing the mirroring process to fail prematurely.
       --retry-times int                the number of times to possibly retry (default 2)

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

      4.18.6, 4.18.7

      How reproducible:

      Frequently

      Steps to Reproduce:

      Mirror multiple release images in isc with below flags 
         oc-mirror \
                  -c /workspace/config/isc.yaml \
                  --workspace file://workspace \
                  --cache-dir /workspace/cache \
                  docker://<mirror-registry>:8443 \
                  --retry-times 6  \
                  --v2

      Actual results:

      Mirroring ignores --retry-times and stops image mirroring after the very first image copy/sync fails.

      Expected results:

      Mirroring should continue sync/copy images until the --retry-times limit is reached and then stop.

      Additional info:

       

              rdossant Rafael Fonseca dos Santos
              rhn-support-sgurnale Sunil Gurnale (Inactive)
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              98 Vote for this issue
              Watchers:
              38 Start watching this issue

                Created:
                Updated: