-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.17
-
None
-
CLID Sprint 266
-
1
-
False
-
-
Description of problem:
When images of opearators are mirror we found that after loading to registry it uploaded latest operator instead of the one defined in the imagesetconfig.
Version-Release number of selected component (if applicable):
$ oc-mirror version --output yaml clientVersion: buildDate: "2024-11-26T08:28:42Z" compiler: gc gitCommit: 07714b7c836ec3ad1b776f25b44c3b2c2f083aa2 gitTreeState: clean gitVersion: 4.17.0-202411251634.p0.g07714b7.assembly.stream.el9-07714b7 goVersion: go1.22.9 (Red Hat 1.22.9-2.el9_5) X:strictfipsruntime major: "" minor: "" platform: linux/amd64
Steps to Reproduce:
$ ./01-download-to-local-file.sh
$ podman login registry.example.com:5000 --verbose --username ??? --password ??? Used: /run/user/1211/containers/auth.json
Login Succeeded!$ cat imagesetconfig-customer.yaml | bat -l yaml │ STDIN 1 │ kind: ImageSetConfiguration 2 │ apiVersion: mirror.openshift.io/v2alpha1 3 │ mirror: 4 │ operators: 5 │ - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.14 6 │ packages: 7 │ - name: cluster-observability-operator 8 │ bundles: 9 │ - name: cluster-observability-operator.0.4.1 10 │ - name: cluster-observability-operator.0.4.0 11 │ - name: ptp-operator 12 │ bundles: 13 │ - name: ptp-operator.v4.14.0-202408121540 14 │ - name: ptp-operator.v4.14.0-202409040238
$ oc-mirror -c imagesetconfig-customer.yaml --from file:///home/rludva/Workspace/2024/2024-12-16/oc-mirror/files-customer docker://registry.example.com:5000/operator-update --v
22024/12/18 11:23:15 [WARN] : ⚠️ --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready. 2024/12/18 11:23:15 [INFO] : 👋 Hello, welcome to oc-mirror 2024/12/18 11:23:15 [INFO] : ⚙️ setting up the environment for you... 2024/12/18 11:23:15 [INFO] : 🔀 workflow mode: diskToMirror WARN[0000] Ignoring unrecognized environment variable REGISTRY_LOGIN WARN[0000] Ignoring unrecognized environment variable REGISTRY_PASSWD 2024/12/18 11:23:15 [INFO] : 🕵️ going to discover the necessary images... 2024/12/18 11:23:15 [INFO] : 🔍 collecting release images... 2024/12/18 11:23:15 [INFO] : 🔍 collecting operator images... 2024/12/18 11:24:55 [WARN] : bundle cluster-observability-operator.0.4.0 of operator cluster-observability-operator not found in catalog: SKIPPING 2024/12/18 11:24:55 [INFO] : 🔍 collecting additional images... 2024/12/18 11:24:55 [INFO] : 🚀 Start copying the images... 2024/12/18 11:24:55 [INFO] : images to copy 24 ✓ 1/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-rhel8@sha256:231f8e9904172abe12a8a426bc9002fac5367436c74e6b7ad00c843c700ab9e9 ✓ 2/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-alertmanager-rhel8@sha256:ed5c91eed5036a306c1276124ecc695c663077ad5f91e14877cee9389af3f6b3 ✓ 3/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/cluster-observability-rhel8-operator@sha256:b03b908f50e6ea300d11f4a01810f67ecdcf80ce63b1dfde193257f59c3ea980 ✓ 4/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-admission-webhook-rhel8@sha256:b23662e54b2be330230910915e5e79c923439fcc20f4dba5574f39474efd022c ✓ 5/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-console-dashboards-plugin-rhel8@sha256:f6f7370c7c6602d29c11606ce399dcc009c3d92cf2945f51058ba710661bde7c ✓ 6/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-console-distributed-tracing-plugin-rhel8@sha256:babd40bc984360ae3c232415e9afc6da73b9a0b361ac51bbb0f4ec0bfa109873 ✓ 7/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-console-logging-plugin-rhel8@sha256:fd0828e617f69010b4e3ef4ca586330b9460d3195c1fb846ff14b0d39b5fecf5 ✓ 8/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-console-troubleshooting-panel-plugin-rhel8@sha256:8d7ed1ffb1efbbdf83162abba051366ca4fc21cb8fb3bc7947ba63e4a626b216 2024/12/18 11:25:27 [INFO] : Mirroring is ongoing. No errors. ✓ 9/24 : (31s) docker://registry.redhat.io/cluster-observability-operator/coo-korrel8r-rhel8@sha256:3e844ddd5d2e6e8d5fa5938347fe6c2153fa39597305e63cfe2780bc8c49c233 ✓ 10/24 : (52s) docker://registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:8204d45506297578c8e41bcc61135da0c7ca244ccbd1b39070684dfeb4c2f26c ✓ 11/24 : (47s) docker://registry.redhat.io/openshift4/ose-ptp-rhel9@sha256:7875a886be9204cfeaf390f8fc3b744d1ca73fd1d711ade768a3748160361909 ✓ 12/24 : (18s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-config-reloader-rhel8@sha256:2b4c9da57d230e4641f2de2c6e81b965b7f4086c677391a33af90c9330c5d9ca ✓ 13/24 : (47s) docker://registry.redhat.io/openshift4/ose-cloud-event-proxy-rhel8@sha256:ed1823640f779acc6389d2c64928142676cd4627ed04e138a9d66c933067bd88 ✓ 14/24 : (36s) docker://registry.redhat.io/cluster-observability-operator/coo-thanos-rhel8@sha256:2dbd724e8c15a3e3ee809cb36ae1c481e27d1c492e0fe8d9dcce7971ba46a62f ✓ 15/24 : (47s) docker://registry.redhat.io/openshift4/ose-ptp-operator@sha256:0392362d82b2ef04719b4bf5f5f97dbced1bf97cb3ae835a11ed6d1672968147 ✓ 16/24 : (52s) docker://registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:fe71196193fc5dc0958df9caa0c7108155552bb5d8fa804c0f6eb1de79c2c16e 2024/12/18 11:26:19 [INFO] : Mirroring is ongoing. No errors. ✓ 17/24 : (10s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-rhel8-operator@sha256:05c03d0475687f25738d8cfc2f6c64d54b9f633c5b3f20a07f597379dfd40f83 ✓ 18/24 : (6s) docker://registry.redhat.io/openshift4/ose-ptp-operator@sha256:87843239527a96aba525dea30c2840bd9db53554b4bcd9c93c4b746285519388 ✓ 19/24 : (51s) docker://registry.redhat.io/openshift4/ose-ptp-rhel9@sha256:ec4c06164e890e0e2599b37841ff14597f5e6e343cf345561c057944d64a2e9d ✓ 20/24 : (26s) docker://registry.redhat.io/openshift4/ose-cloud-event-proxy-rhel8@sha256:2a9ec846c46c5ec5ec20ab11afefcca30887dec4f3ba0ee1c8907e0eea9ce69f ✓ 21/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-operator-bundle@sha256:0acf191dcafe2b8e3ae2f10b1a1adf04f1fce9cf9a9088314fffa99f6c1b0e20 ✓ 22/24 : (1s) docker://registry.redhat.io/openshift4/ose-ptp-operator-bundle@sha256:5d043b25f48943028d56e0b70a832a0b9f941b3cfee5a5b6ed88eb5c4bab1231 ✓ 23/24 : (2s) docker://registry.redhat.io/cluster-observability-operator/cluster-observability-operator-bundle@sha256:55ce1ea85a4099f326cae033a63e73c66d0a0d68b5f01c694ee7238b3bb8d79c ✓ 24/24 : (59s) docker://registry.redhat.io/redhat/redhat-operator-index:v4.14 2024/12/18 11:27:19 [INFO] : === Results === 2024/12/18 11:27:19 [INFO] : ✅ 24 / 24 operator images mirrored successfully 2024/12/18 11:27:19 [INFO] : 📄 Generating IDMS file... 2024/12/18 11:27:19 [INFO] : /home/rludva/Workspace/2024/2024-12-16/oc-mirror/files-customer/working-dir/cluster-resources/idms-oc-mirror.yaml file created 2024/12/18 11:27:19 [INFO] : 📄 No images by tag were mirrored. Skipping ITMS generation. 2024/12/18 11:27:19 [INFO] : 📄 Generating CatalogSource file... 2024/12/18 11:27:19 [INFO] : /home/rludva/Workspace/2024/2024-12-16/oc-mirror/files-customer/working-dir/cluster-resources/cs-redhat-operator-index-v4-14.yaml file created 2024/12/18 11:27:19 [INFO] : mirror time : 4m3.822197613s 2024/12/18 11:27:19 [INFO] : 👋 Goodbye, thank you for using oc-mirror ===
$ ./02-copy-to-local-registry.sh
$ podman login registry.example.com:5000 --verbose --username --password --tls-verify=true Used: /run/user/1211/containers/auth.json Login Succeeded!Registry content: $ curl -k -s https://registry.example.com:5000/v2/_catalog | jq { "repositories": [ "operator-update/cluster-observability-operator/cluster-observability-operator-bundle", "operator-update/cluster-observability-operator/cluster-observability-rhel8-operator", "operator-update/cluster-observability-operator/coo-admission-webhook-rhel8", "operator-update/cluster-observability-operator/coo-console-dashboards-plugin-rhel8", "operator-update/cluster-observability-operator/coo-console-distributed-tracing-plugin-rhel8", "operator-update/cluster-observability-operator/coo-console-logging-plugin-rhel8", "operator-update/cluster-observability-operator/coo-console-troubleshooting-panel-plugin-rhel8", "operator-update/cluster-observability-operator/coo-korrel8r-rhel8", "operator-update/cluster-observability-operator/coo-prometheus-alertmanager-rhel8", "operator-update/cluster-observability-operator/coo-prometheus-config-reloader-rhel8", "operator-update/cluster-observability-operator/coo-prometheus-rhel8", "operator-update/cluster-observability-operator/coo-prometheus-rhel8-operator", "operator-update/cluster-observability-operator/coo-thanos-rhel8", "operator-update/openshift4/ose-cloud-event-proxy-rhel8", "operator-update/openshift4/ose-kube-rbac-proxy", "operator-update/openshift4/ose-ptp-operator", "operator-update/openshift4/ose-ptp-operator-bundle", "operator-update/openshift4/ose-ptp-rhel9", "operator-update/redhat/redhat-operator-index" ] }
$ oc-mirror --v2 -c imagesetconfig-customer.yaml --from file:///home/rludva/Workspace/2024/2024-12-16/oc-mirror/files-customer docker://registry.example.com:5000/operator-update
2024/12/18 11:50:03 [WARN] : ⚠️ --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready. 2024/12/18 11:50:03 [INFO] : 👋 Hello, welcome to oc-mirror 2024/12/18 11:50:03 [INFO] : ⚙️ setting up the environment for you... 2024/12/18 11:50:03 [INFO] : 🔀 workflow mode: diskToMirror WARN[0000] Ignoring unrecognized environment variable REGISTRY_LOGIN WARN[0000] Ignoring unrecognized environment variable REGISTRY_PASSWD 2024/12/18 11:50:04 [INFO] : 🕵️ going to discover the necessary images... 2024/12/18 11:50:04 [INFO] : 🔍 collecting release images... 2024/12/18 11:50:04 [INFO] : 🔍 collecting operator images... 2024/12/18 11:50:14 [WARN] : bundle cluster-observability-operator.0.4.0 of operator cluster-observability-operator not found in catalog: SKIPPING 2024/12/18 11:50:14 [INFO] : 🔍 collecting additional images... 2024/12/18 11:50:14 [INFO] : 🚀 Start copying the images... 2024/12/18 11:50:14 [INFO] : images to copy 24 ✓ 1/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-thanos-rhel8@sha256:2dbd724e8c15a3e3ee809cb36ae1c481e27d1c492e0fe8d9dcce7971ba46a62f ✓ 2/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-operator@sha256:0392362d82b2ef04719b4bf5f5f97dbced1bf97cb3ae835a11ed6d1672968147 ✓ 3/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-admission-webhook-rhel8@sha256:b23662e54b2be330230910915e5e79c923439fcc20f4dba5574f39474efd022c ✓ 4/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-console-dashboards-plugin-rhel8@sha256:f6f7370c7c6602d29c11606ce399dcc009c3d92cf2945f51058ba710661bde7c ✓ 5/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-console-distributed-tracing-plugin-rhel8@sha256:babd40bc984360ae3c232415e9afc6da73b9a0b361ac51bbb0f4ec0bfa109873 ✓ 6/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-console-logging-plugin-rhel8@sha256:fd0828e617f69010b4e3ef4ca586330b9460d3195c1fb846ff14b0d39b5fecf5 ✓ 7/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-console-troubleshooting-panel-plugin-rhel8@sha256:8d7ed1ffb1efbbdf83162abba051366ca4fc21cb8fb3bc7947ba63e4a626b216 ✓ 8/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-korrel8r-rhel8@sha256:3e844ddd5d2e6e8d5fa5938347fe6c2153fa39597305e63cfe2780bc8c49c233 2024/12/18 11:50:15 [INFO] : Mirroring is ongoing. No errors. ✓ 9/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-alertmanager-rhel8@sha256:ed5c91eed5036a306c1276124ecc695c663077ad5f91e14877cee9389af3f6b3 ✓ 10/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-config-reloader-rhel8@sha256:2b4c9da57d230e4641f2de2c6e81b965b7f4086c677391a33af90c9330c5d9ca ✓ 11/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-rhel8-operator@sha256:05c03d0475687f25738d8cfc2f6c64d54b9f633c5b3f20a07f597379dfd40f83 ✓ 12/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/cluster-observability-rhel8-operator@sha256:b03b908f50e6ea300d11f4a01810f67ecdcf80ce63b1dfde193257f59c3ea980 ✓ 13/24 : (0s) docker://registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:fe71196193fc5dc0958df9caa0c7108155552bb5d8fa804c0f6eb1de79c2c16e ✓ 14/24 : (0s) docker://registry.redhat.io/openshift4/ose-cloud-event-proxy-rhel8@sha256:ed1823640f779acc6389d2c64928142676cd4627ed04e138a9d66c933067bd88 ✓ 15/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-rhel9@sha256:7875a886be9204cfeaf390f8fc3b744d1ca73fd1d711ade768a3748160361909 ✓ 16/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/coo-prometheus-rhel8@sha256:231f8e9904172abe12a8a426bc9002fac5367436c74e6b7ad00c843c700ab9e9 2024/12/18 11:50:16 [INFO] : Mirroring is ongoing. No errors. ✓ 17/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-operator@sha256:87843239527a96aba525dea30c2840bd9db53554b4bcd9c93c4b746285519388 ✓ 18/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-rhel9@sha256:ec4c06164e890e0e2599b37841ff14597f5e6e343cf345561c057944d64a2e9d ✓ 19/24 : (0s) docker://registry.redhat.io/openshift4/ose-cloud-event-proxy-rhel8@sha256:2a9ec846c46c5ec5ec20ab11afefcca30887dec4f3ba0ee1c8907e0eea9ce69f ✓ 20/24 : (0s) docker://registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:8204d45506297578c8e41bcc61135da0c7ca244ccbd1b39070684dfeb4c2f26c ✓ 21/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-operator-bundle@sha256:0acf191dcafe2b8e3ae2f10b1a1adf04f1fce9cf9a9088314fffa99f6c1b0e20 ✓ 22/24 : (0s) docker://registry.redhat.io/openshift4/ose-ptp-operator-bundle@sha256:5d043b25f48943028d56e0b70a832a0b9f941b3cfee5a5b6ed88eb5c4bab1231 ✓ 23/24 : (0s) docker://registry.redhat.io/cluster-observability-operator/cluster-observability-operator-bundle@sha256:55ce1ea85a4099f326cae033a63e73c66d0a0d68b5f01c694ee7238b3bb8d79c ✓ 24/24 : (0s) docker://registry.redhat.io/redhat/redhat-operator-index:v4.14 2024/12/18 11:50:16 [INFO] : === Results === 2024/12/18 11:50:16 [INFO] : ✅ 24 / 24 operator images mirrored successfully 2024/12/18 11:50:16 [INFO] : 📄 Generating IDMS file... 2024/12/18 11:50:17 [INFO] : /home/rludva/Workspace/2024/2024-12-16/oc-mirror/files-customer/working-dir/cluster-resources/idms-oc-mirror.yaml file created 2024/12/18 11:50:17 [INFO] : 📄 No images by tag were mirrored. Skipping ITMS generation. 2024/12/18 11:50:17 [INFO] : 📄 Generating CatalogSource file... 2024/12/18 11:50:17 [INFO] : /home/rludva/Workspace/2024/2024-12-16/oc-mirror/files-customer/working-dir/cluster-resources/cs-redhat-operator-index-v4-14.yaml file created 2024/12/18 11:50:17 [INFO] : mirror time : 12.992133244s 2024/12/18 11:50:17 [INFO] : 👋 Goodbye, thank you for using oc-mirror
$ oc-mirror list operators --catalog registry.example.com:5000/operator-update/redhat/redhat-operator-index:v4.14 --package ptp-operator NAME DISPLAY NAME DEFAULT CHANNEL ptp-operator PTP Operator stablePACKAGE CHANNEL HEAD ptp-operator stable ptp-operator.v4.14.0-202411261536
Actual results:
Latest release of ptp-operator.v4.14.0-202411261536 is transfered instead if the one specified in the ImageSetConfiguration.
Expected results:
It is expected to transfer the boundle specified in the ImageSetConfiguration.
- is related to
-
CLID-302 Bundles feature removal
- In Progress