Description of problem:
When imagesetconfigure without OCI FBC format config, but command with use-oci-feature flag, the oc-mirror command should check the imagesetconfigure firstly and print error immediately
Version-Release number of selected component (if applicable):
oc-mirror version Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.13.0-202303011628.p0.g2e3885b.assembly.stream-2e3885b", GitCommit:"2e3885b469ee7d895f25833b04fd609955a2a9f6", GitTreeState:"clean", BuildDate:"2023-03-01T16:49:12Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
always
Steps to Reproduce:
With imagesetconfig cat config-nor.yaml apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration storageConfig: registry: imageURL: localhost:5000/metadata:latest skipTLS: true mirror: additionalImages: - name: quay.io/openshifttest/bench-army-knife@sha256:078db36d45ce0ece589e58e8de97ac1188695ac155bc668345558a8dd77059f6 operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.12 packages: - name: elasticsearch-operator Use oc-mirror with --use-oci-feature flag `oc-mirror --config config-nor.yaml docker://localhost:5000/neg --use-oci-feature --dest-skip-tls --dest-use-http`
Actual results:
2. Will mirror image to registry but failed in the end uploading: localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:2471a83cee3537f771d3a2af54471d787d09bf8507004e7c50a8f1cba3ed49ef 16.43KiB sha256:4f38746fef64962e708b0c8f2b25e53da801a7ca31242f73ca617d77561c0038 localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:29ff9f489fb9d8000e26acc2a1f87bade3ec32a44d4b16959209c1f855f7881f localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:0373a9c8c3d01cba613602cc013abaefc93b3bfc9ea7773a481f08d35baa50ef localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:8ee9a3292b57fe14c595bdea73677565ed21804f20a1a8d8b8c47d5e1b0f75fb localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:b7b1d9ad4f2e6b4a28c209f7ab7c917c52779a893fc74c6afe2a68ea7889daf3 localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:68109f03ef8c4ab0dc73df4f77b8b8cd8b5a020bd43cdae7f61483310548ac43 localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:c76d04823a6d03cc754e3a611a399a4e06ee295b5f1b79566ad8dd4e46862dd0 localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:796dece5dd5ba7e34a4ba0fe0b42685a7015e15c589ec999140d19551e33850f localhost:5000/neg/openshift-logging/kibana6-rhel8 sha256:25d6d8f302c907582ef695c4a4e582b2fee2c0a127ca9f23e6e746fdc845c28f localhost:5000/neg/openshift-logging/kibana6-rhel8:59d92978 sha256:ccb7a441b101d72de026fd307defb50199ccb302723baae03c688e0fba784d9f localhost:5000/neg/openshift-logging/kibana6-rhel8:a528db01 info: Mirroring completed in 2m21.7s (35.97MB/s) Rendering catalog image "localhost:5000/neg/home/ocmirrortest/noo/redhat-operator-index:f48f6e" with file-based catalog error: error rebuilding catalog images from file-based catalogs: error creating OCI layout: stat oc-mirror-workspace/src/catalogs/home/ocmirrortest/noo/redhat-operator-index/sha256:f48f6efc2391117bf940fe09b52a6ee54a0b83acfc6441964c97cd77547e3d25/layout/index.json: no such file or directory
Expected results:
2. Should check the imageset configure at the beginning and print error immediately .
- blocks
-
OCPBUGS-10951 When imagesetconfigure without OCI FBC format config, but command with use-oci-feature flag, the oc-mirror command should check the imagesetconfigure firstly and print error immediately
- Closed
- clones
-
OCPBUGS-8216 oc-mirror print log: unable to parse reference oci://mno/redhat-operator-index:v4.12
- Closed
- is cloned by
-
OCPBUGS-10951 When imagesetconfigure without OCI FBC format config, but command with use-oci-feature flag, the oc-mirror command should check the imagesetconfigure firstly and print error immediately
- Closed
- links to
-
RHEA-2023:5006 rpm