Description of problem:
Currently in oc-mirror v2 user have no way of determining if the error occurs during a mirror is an actual mirror or a flake. We need to provide a way for the user to determine such errors easily which will make the product/user experience better.
Version-Release number of selected component (if applicable):
[knarra@knarra-thinkpadx1carbon7th openshift-tests-private]$ oc-mirror version WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.16.0-202404221110.p0.g0e2235f.assembly.stream.el9-0e2235f", GitCommit:"0e2235f4a51ce0a2d51cfc87227b1c76bc7220ea", GitTreeState:"clean", BuildDate:"2024-04-22T16:05:56Z", GoVersion:"go1.21.9 (Red Hat 1.21.9-1.el9_4) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
Always
Steps to Reproduce:
1. Install latest oc-mirror v2 2. Run mirror2disk via command `oc-mirror -c <config.yaml> file://out --v2` 3. Now run disk2mirror via command `oc-mirror -c <config.yaml> --from file://out docker:<localhost:5000>/mirror
Actual results:
sometimes mirror fails with error 2024/04/24 13:15:38 [ERROR] : [Worker] err: copying image 3/3 from manifest list: reading blob sha256:418a8fe842682e4eadab6f16a6ac8d30550665a2510090aa9a29c607d5063e67: fetching blob: unauthorized: Access to the requested resource is not authorized
Expected results:
There should be a way for user to determine whether the error happened was an actual error or kind of a race. Above error is not intutive
Additional info:
Discussed here https://redhat-internal.slack.com/archives/C050P27C71S/p1714025295014549
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update