Details
-
Bug
-
Resolution: Duplicate
-
Normal
-
4.16
-
Important
-
Rejected
-
False
-
-
N/A
-
Release Note Not Required
-
In Progress
-
Customer Facing
Description
Description of problem:
"targetCatalog" and "targetTag" does not work with oc-mirror v2
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.16.0-202403070215.p0.gc4f8295.assembly.stream.el9-c4f8295", GitCommit:"c4f829512107f7d0f52a057cd429de2030b9b3b3", GitTreeState:"clean", BuildDate:"2024-03-07T03:46:24Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
sometimes (not 100% reproduced)
Steps to Reproduce:
1) Use following imagesetconfigure to do mirrorToDisk: cat config-op-targettag.yaml kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.13 targetCatalog: vendors/redhat-operator-index targetTag: v4.13.0 packages: - name: aws-load-balancer-operator `oc-mirror --config config-op-targettag.yaml file://out22 --v2` 2) Do diskToMirror `oc-mirror --config config-op-targettag.yaml --from file://out22 docker://xxx.com:5000 --v2`
Actual results:
2) check the idms file the mirrored catalog is not respect the target catalog and target tag setting cat out22/working-dir/cluster-resources/idms-oc-mirror.yaml --- apiVersion: config.openshift.io/v1 kind: ImageDigestMirrorSet metadata: creationTimestamp: null name: idms-operator-0 spec: imageDigestMirrors: - mirrors: - ec2-18-188-96-65.us-east-2.compute.amazonaws.com:5000/albo source: registry.redhat.io/albo - mirrors: - ec2-18-188-96-65.us-east-2.compute.amazonaws.com:5000/openshift4 source: registry.redhat.io/openshift4 status: {}
Expected results:
2) Should respect the target catalog and target tag setting for diskToMirror
Attachments
Issue Links
- is cloned by
-
OCPBUGS-31343 Oc-mirror should fail with error when operator not found
- New