-
Bug
-
Resolution: Done-Errata
-
Critical
-
4.16
Description of problem:
when use targetCatalog, mirror failed with error: error: error rebuilding catalog images from file-based catalogs: error copying image docker://registry.redhat.io/abc/redhat-operator-index:v4.13 to docker://localhost:5000/abc/redhat-operator-index:v4.13: initializing source docker://registry.redhat.io/abc/redhat-operator-index:v4.13: (Mirrors also failed: [localhost:5000/abc/redhat-operator-index:v4.13: pinging container registry localhost:5000: Get "https://localhost:5000/v2/": http: server gave HTTP response to HTTPS client]): registry.redhat.io/abc/redhat-operator-index:v4.13: reading manifest v4.13 in registry.redhat.io/abc/redhat-operator-index: unauthorized: access to the requested resource is not authorized
Version-Release number of selected component (if applicable):
oc-mirror 4.16
How reproducible:
always
Steps to Reproduce:
1) Use following isc to do mirror2mirror for v1: kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 storageConfig: local: path: /tmp/case60597 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.13 targetCatalog: abc/redhat-operator-index packages: - name: servicemeshoperator `oc-mirror --config config.yaml docker://localhost:5000 --dest-use-http`
Actual results:
1) mirror failed with error:
info: Mirroring completed in 420ms (0B/s)
error: error rebuilding catalog images from file-based catalogs: error copying image docker://registry.redhat.io/abc/redhat-operator-index:v4.13 to docker://localhost:5000/abc/redhat-operator-index:v4.13: initializing source docker://registry.redhat.io/abc/redhat-operator-index:v4.13: (Mirrors also failed: [localhost:5000/abc/redhat-operator-index:v4.13: pinging container registry localhost:5000: Get "https://localhost:5000/v2/": http: server gave HTTP response to HTTPS client]): registry.redhat.io/abc/redhat-operator-index:v4.13: reading manifest v4.13 in registry.redhat.io/abc/redhat-operator-index: unauthorized: access to the requested resource is not authorized
Expected results:
1) no error.
Additional information:
compared with oc-mirror 4.15.9, can't reproduce this issue
- blocks
-
OCPBUGS-34646 [v1] Disk to Mirror or use of targetCatalog requires access to internet for catalog images
- Closed
- is cloned by
-
OCPBUGS-34646 [v1] Disk to Mirror or use of targetCatalog requires access to internet for catalog images
- Closed
- links to
-
RHEA-2024:3718 OpenShift Container Platform 4.17.z bug fix update