Description of problem:
kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: platform: channels: - name: ocp-4.32 minVersion: 4.42.99 maxVersion: 4.42.100 graph: true
Version-Release number of selected component (if applicable):
4.18+
How reproducible:
always
Steps to Reproduce:
1. ISC with invalid release (or release version) 2. M2D 3.
Actual results:
[fedora@knarra-fedora 1062]$ ./oc-mirror -c rimage.yaml file://test-doc --v2 2025/04/01 08:10:19 [INFO] : 👋 Hello, welcome to oc-mirror 2025/04/01 08:10:19 [INFO] : ⚙️ setting up the environment for you... 2025/04/01 08:10:19 [INFO] : 🔀 workflow mode: mirrorToDisk 2025/04/01 08:10:19 [INFO] : 🕵 going to discover the necessary images... 2025/04/01 08:10:19 [INFO] : 🔍 collecting release images... 2025/04/01 08:10:25 [INFO] : 🔍 collecting operator images... 2025/04/01 08:10:25 [INFO] : 🔍 collecting additional images... 2025/04/01 08:10:25 [INFO] : 🔍 collecting helm images... 2025/04/01 08:10:25 [INFO] : 🔂 rebuilding catalogs 2025/04/01 08:10:25 [INFO] : 🚀 Start copying the images... 2025/04/01 08:10:25 [INFO] : 📌 images to copy 1 1 / 1 () [======================================================================================================================] 100 % ✓ () graph-image:latest ➡️ cache 2025/04/01 08:10:26 [INFO] : === Results === 2025/04/01 08:10:26 [INFO] : ✓ 1 / 1 release images mirrored successfully 2025/04/01 08:10:26 [INFO] : 📦 Preparing the tarball archive... 2025/04/01 08:10:26 [INFO] : mirror time : 6.459203665s 2025/04/01 08:10:26 [INFO] : 👋 Goodbye, thank you for using oc-mirror
Expected results:
An error indicating the release is not valid.
Additional info:
- duplicates
-
OCPBUGS-51157 [v2] oc-mirror doesn't return an error when the specified OpenShift release version is unavailable
-
- POST
-
- relates to
-
OCPBUGS-49880 v2: oc-mirror reports success exit (0) even in case of errors
-
- Verified
-