Description of problem:
If oc-mirror v2 is unable to pull container images from a registry due to auth credentials it generates error messages that do not indicate to the user that there's an auth issue.
Version-Release number of selected component (if applicable):
4.18.6
How reproducible:
100%
Steps to Reproduce:
1. Reboot the test system to ensure there are no login credentials in the XDG directory or env var overrides
2. Ensure ~/.docker/config.json does NOT exist
3. Run the oc-mirror command like
```
oc-mirror-4.18.6 --v2 ./imageset-config.yaml file:///opt/mirror
```
4. Receive error messages about 502 bad gateway or unable to pull from a v1 registry
5. Copy pull secret to ~/.docker/config.json
6. Rerun the oc-mirror command
7. All images are pulled successfully
Actual results:
oc-mirror error messages when the pull secret cannot be found do not help the user understand that there in an authentication issue
Expected results:
Additional info:
- duplicates
-
OCPBUGS-54587 [v2] oc-mirror v2 retry-times parameter does not work when mirroring release images
-
- Closed
-