Description of problem:
Oc-mirror for OCI FBC catalogs without package filter will failed
Version-Release number of selected component (if applicable):
oc-mirror version Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.13.0-202303071354.p0.g2f6f843.assembly.stream-2f6f843", GitCommit:"2f6f843f311e8440eb7901433e0f0a8419c96487", GitTreeState:"clean", BuildDate:"2023-03-07T21:12:06Z", GoVersion:"go1.19.4", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
always
Steps to Reproduce:
1) Create imagesetconfigure like cat config.yaml apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration storageConfig: registry: imageURL: localhost:5000/metadata:latest skipTLS: true mirror: operators: - catalog: oci:///home/ocmirrortest/noo/redhat-operator-index 2) Run the oc-mirror command without filter the package `oc-mirror --config config.yaml docker://localhost:5000 --use-oci-feature --dest-use-http --dest-skip-tls --dry-run`
Actual results:
The oc-mirror failed with error: [root@localhost 60660]# oc-mirror --config config.yaml docker://localhost:5000 --use-oci-feature --dest-use-http --dest-skip-tls --dry-run Checking push permissions for localhost:5000 Found: oc-mirror-workspace/src/publish Found: oc-mirror-workspace/src/v2 Found: oc-mirror-workspace/src/charts Found: oc-mirror-workspace/src/release-signatures No metadata detected, creating new workspace unable to create ImageSource for more than one image in oci, choose an image: oci:///home/ocmirrortest/noo/redhat-operator-indexerror: unable to get OCI Image from oci:/home/ocmirrortest/noo/redhat-operator-index: more than one image in oci, choose an image [root@localhost 60660]# echo $? 1 .
Expected results:
The error information seems like we can't support the head only for OCI FBC , better to update it .
Additional info:
`skopeo copy docker://registry.redhat.io/redhat/redhat-operator-index:v4.12 oci:///home/ocmirrortest/noo/redhat-operator-index --remove-signatures`
`skopeo copy docker://registry.redhat.io/redhat/redhat-operator-index:v4.11 oci:///home/ocmirrortest/noo/redhat-operator-index --remove-signatures`
use the skopeo twice with same dest dir, so the catalogs is invalid . that's the root cause.
- blocks
-
OCPBUGS-9963 Better to change the error information more clearly to help understand
- Closed
- clones
-
OCPBUGS-7465 oc-mirror will hit 401 code after hang a while
- Closed
- is cloned by
-
OCPBUGS-9963 Better to change the error information more clearly to help understand
- Closed
- links to
-
RHEA-2023:5006 rpm