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:
- clones
-
OCPBUGS-54587 [v2] oc-mirror v2 retry-times parameter does not work when mirroring release images
-
- ON_QA
-
- is blocked by
-
OCPBUGS-54587 [v2] oc-mirror v2 retry-times parameter does not work when mirroring release images
-
- ON_QA
-
- links to
-
RHEA-2024:11038 OpenShift Container Platform 4.19.z bug fix update