-
Bug
-
Resolution: Done-Errata
-
Major
-
4.16
Description of problem:
Oc-mirror should fail with error when operator not found
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:
always
Steps to Reproduce:
1) With following imagesetconfig: cat config-e.yaml apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.14 packages: - name: cincinnati-operator - name: cluster-logging channels: - name: stable minVersion: 5.7.7 maxVersion: 5.7.7 `oc-mirror --config config-e.yaml file://out2 --v2` 2) Check the operator version [root@preserve-fedora36 app1]# oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.14 --package cluster-logging --channel stable-5.7 VERSIONS 5.7.6 5.7.7 5.7.0 5.7.1 5.7.10 5.7.2 5.7.4 5.7.5 5.7.9 5.7.11 5.7.3 5.7.8 [root@preserve-fedora36 app1]# oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.14 --package cluster-logging --channel stable VERSIONS 5.8.0 5.8.1 5.8.2 5.8.3 5.8.4
Actual results:
2) No error when operator not found oc-mirror --config config-e.yaml file://out2 --v2 --v2 flag identified, flow redirected to the oc-mirror v2 version. PLEASE DO NOT USE that. V2 is still under development and it is not ready to be used. 2024/03/25 05:07:57 [INFO] : mode mirrorToDisk 2024/03/25 05:07:57 [INFO] : local storage registry will log to /app1/0321/out2/working-dir/logs/registry.log 2024/03/25 05:07:57 [INFO] : starting local storage on localhost:55000 2024/03/25 05:07:57 [INFO] : copying cincinnati response to out2/working-dir/release-filters 2024/03/25 05:07:57 [INFO] : total release images to copy 0 2024/03/25 05:07:57 [INFO] : copying operator image registry.redhat.io/redhat/redhat-operator-index:v4.14 2024/03/25 05:08:00 [INFO] : manifest 6839c41621e7d3aa2be40499ed1d69d833bc34472689688d8efd4e944a32469e 2024/03/25 05:08:00 [INFO] : label /configs 2024/03/25 05:08:16 [INFO] : related images length 2 2024/03/25 05:08:16 [INFO] : images to copy (before duplicates) 4 2024/03/25 05:08:16 [INFO] : total operator images to copy 4 2024/03/25 05:08:16 [INFO] : total additional images to copy 0 2024/03/25 05:08:16 [INFO] : images to mirror 4 2024/03/25 05:08:16 [INFO] : batch count 1 2024/03/25 05:08:16 [INFO] : batch index 0 2024/03/25 05:08:16 [INFO] : batch size 4 2024/03/25 05:08:16 [INFO] : remainder size 0 2024/03/25 05:08:16 [INFO] : starting batch 0 2024/03/25 05:08:27 [INFO] : completed batch 0 2024/03/25 05:08:42 [INFO] : start time : 2024-03-25 05:07:57.7405637 +0000 UTC m=+0.058744792 2024/03/25 05:08:42 [INFO] : collection time : 2024-03-25 05:08:16.069731565 +0000 UTC m=+18.387912740 2024/03/25 05:08:42 [INFO] : mirror time : 2024-03-25 05:08:42.4006485 +0000 UTC m=+44.71882960
Expected results:
2) For channel stable, we can’t find the 5.7.7 version for cluster-logging, the mirror should fail with error.
- links to
-
RHEA-2024:3718 OpenShift Container Platform 4.17.z bug fix update