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

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

XMLWordPrintable

    • None
    • CLID Sprint 271, CLID Sprint 272
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, oc-mirror plugin v2 would terminate with an error if the source registry responded with any of the following HTTP status codes during image copying: 502, 503, 504. With this update, oc-mirror plugin v2 automatically retries the copy operation when encountering these temporary server errors. (link:https://issues.redhat.com/browse/OCPBUGS-56185[OCPBUGS-56185])
      Show
      * Previously, oc-mirror plugin v2 would terminate with an error if the source registry responded with any of the following HTTP status codes during image copying: 502, 503, 504. With this update, oc-mirror plugin v2 automatically retries the copy operation when encountering these temporary server errors. (link: https://issues.redhat.com/browse/OCPBUGS-56185 [ OCPBUGS-56185 ])
    • Bug Fix
    • Done

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

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

                Created:
                Updated:
                Resolved: