Description of problem:
When I run the same mirroring command twice it generates different 'ImageContentSourcePolicy' for first and second invocation.
Version-Release number of selected component (if applicable):
oc mirror version
Client Version: version.Info
How reproducible:
Always
Steps to Reproduce:
1. get attached ImageSetConfiguration
2. run 'oc mirror --config=./image-set.yaml docker://<yourRegistry> --continue-on-error'
3. check generated oc-mirror-workspace/results-1661420326/imageContentSourcePolicy.yaml
4. run command from step 2 again
5. check generated oc-mirror-workspace/results-1661435345/imageContentSourcePolicy.yaml
Actual results:
Step 3:
cat oc-mirror-workspace/results-1661420326/imageContentSourcePolicy.yaml --- apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: name: generic-0 spec: repositoryDigestMirrors: - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/ubi8 source: registry.redhat.io/ubi8 --- apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: labels: operators.openshift.org/catalog: "true" name: operator-0 spec: repositoryDigestMirrors: - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/openshift-istio source: registry.redhat.io/openshift-istio - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/openshift-logging source: registry.redhat.io/openshift-logging - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/openshift-service-mesh source: registry.redhat.io/openshift-service-mesh - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/rhosdt source: registry.redhat.io/rhosdt - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/redhat source: registry.redhat.io/redhat - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/openshift4 source: registry.redhat.io/openshift4
Step 5:
cat oc-mirror-workspace/results-1661435345/imageContentSourcePolicy.yaml --- apiVersion: operator.openshift.io/v1alpha1 kind: ImageContentSourcePolicy metadata: labels: operators.openshift.org/catalog: "true" name: operator-0 spec: repositoryDigestMirrors: - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/redhat source: registry.redhat.io/redhat - mirrors: - bastion.fbr-disc-411-01-2.maistra.upshift.redhat.com:55555/openshift-service-mesh source: registry.redhat.io/openshift-service-mesh
Expected results:
It should generate always the same ImageContentSourcePolicy
Additional info:
Full output for steps 2 and 4 attached
- account is impacted by
-
CLID-94 The resulted ICSP should contain details for all operators not just for newly added
- Closed