-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.17
-
Moderate
-
None
-
Rejected
-
False
-
-
Internal bug
-
Release Note Not Required
-
In Progress
Description of problem:
The catalogsource file for mirror2mirror is invalid with local cache
Version-Release number of selected component (if applicable):
./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.18.0-202409091841.p0.g45b1fcd.assembly.stream.el9-45b1fcd", GitCommit:"45b1fcd9df95420d5837dfdd2775891ae3dd6adf", GitTreeState:"clean", BuildDate:"2024-09-09T20:48:47Z", GoVersion:"go1.22.5 (Red Hat 1.22.5-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
Always
Steps to Reproduce:
1. run the mirror2mirror command : kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: quay.io/openshifttest/nginxolm-operator-index:mirrortest1 `oc-mirror -c config-head.yaml --workspace file://out-head docker://my-route-zhouy.apps.yinzhou0910.qe.azure.devcluster.openshift.com --v2 --dest-tls-verify=false`
Actual results:
The catalogsource file is invalid and create the twice for the catalogsource file: 2024/09/10 10:47:35 [INFO] : 📄 Generating CatalogSource file... 2024/09/10 10:47:35 [INFO] : out11re/working-dir/cluster-resources/cs-redhat-operator-index-v4-15.yaml file created 2024/09/10 10:47:35 [INFO] : out11re/working-dir/cluster-resources/cs-redhat-operator-index-v4-15.yaml file created 2024/09/10 10:47:35 [INFO] : mirror time : 1m41.028961606s 2024/09/10 10:47:35 [INFO] : 👋 Goodbye, thank you for using oc-mirror [fedora@preserve-fedora-yinzhou yinzhou]$ ll out11re/working-dir/cluster-resources/ total 8 -rw-r--r--. 1 fedora fedora 242 Sep 10 10:47 cs-redhat-operator-index-v4-15.yaml -rw-r--r--. 1 fedora fedora 289 Sep 10 10:47 idms-oc-mirror.yaml [fedora@preserve-fedora-yinzhou yinzhou]$ cat out11re/working-dir/cluster-resources/cs-redhat-operator-index-v4-15.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: cs-redhat-operator-index-v4-15 namespace: openshift-marketplace spec: image: localhost:55000/redhat/redhat-operator-index:v4.15 sourceType: grpc status: {}
Expected results:
The catalogsource file should be created with the registry route not the local cache
Additional info:
- links to
-
RHEA-2024:6122 OpenShift Container Platform 4.18.z bug fix update