Description of problem:
When run delete command, see some failed , but no way to check the logs about the failure.
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.18.0-202410011141.p0.g227a9c4.assembly.stream.el9-227a9c4", GitCommit:"227a9c499b6fd94e189a71776c83057149ee06c2", GitTreeState:"clean", BuildDate:"2024-10-01T20:07:43Z", GoVersion:"go1.22.5 (Red Hat 1.22.5-1.module+el8.10.0+22070+9237f38b) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
Always
Steps to Reproduce:
1) use v1 format to mirror : kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15 packages: - name: windows-machine-config-operator platform: graph: true channels: - name: stable-4.16 2) use v2 format to mirror again : kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15 packages: - name: windows-machine-config-operator platform: graph: true channels: - name: stable-4.16 `oc-mirror -c config.yaml file://out-ocp-op --v2` `oc-mirror -c config.yaml --from file://out-ocp-op --v2 docker://localhost:5000 --dest-tls-verify=false` 3) use v2 delete to generate the delete image list: apiVersion: mirror.openshift.io/v2alpha1 kind: DeleteImageSetConfiguration delete: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15 packages: - name: windows-machine-config-operator platform: graph: true channels: - name: stable-4.16 `oc-mirror delete --config config-d.yaml --workspace file://out-ocp-op --v2 --generate docker://localhost:5000` 4) use the delete command to execute the delete function : `oc-mirror delete --v2 --delete-yaml-file out-ocp-op/working-dir/delete/delete-images.yaml docker://localhost:5000 --force-cache-delete=true --dest-tls-verify=false`
Actual results:
4) see failed image logs , but no way to check the failure : oc-mirror delete --v2 --delete-yaml-file out-ocp-op/working-dir/delete/delete-images.yaml docker://localhost:5000 --force-cache-delete=true --dest-tls-verify=false2024/10/09 03:36:17 [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/10/09 03:36:17 [INFO] : 👋 Hello, welcome to oc-mirror 2024/10/09 03:36:17 [INFO] : ⚙️ setting up the environment for you... 2024/10/09 03:36:17 [INFO] : 🔀 workflow mode: diskToMirror / delete 2024/10/09 03:36:17 [INFO] : 👀 Reading delete file... 2024/10/09 03:36:17 [INFO] : 🚀 Start deleting the images... 2024/10/09 03:36:17 [INFO] : === Overall Progress - image 1 / 195 === 2024/10/09 03:36:17 [INFO] : image: docker://quay.io/openshift-release-dev/ocp-release:4.16.14-x86_64 ... 2024/10/09 03:36:19 [INFO] : === Overall Progress - image 194 / 195 === 2024/10/09 03:36:19 [INFO] : image: docker://registry.redhat.io/openshift4-wincw/windows-machine-config-operator-bundle@sha256:452a7634363c3f39aacab727c5cf7eef2c5bd95c39b5babb40a70b962f4f97c3 2024/10/09 03:36:19 [INFO] : =========================================== 2024/10/09 03:36:19 [INFO] : === Overall Progress - image 195 / 195 === 2024/10/09 03:36:19 [INFO] : image: docker://registry.redhat.io/openshift4-wincw/windows-machine-config-rhel9-operator@sha256:8bf4f7395ad0015abfdcdf80945ce3d90461ee62730954a3da00f5bf838f79eb 2024/10/09 03:36:19 [INFO] : =========================================== 2024/10/09 03:36:19 [INFO] : === Results === 2024/10/09 03:36:19 [INFO] : All images deleted successfully 195 / 195 ✅ 2024/10/09 03:36:19 [INFO] : 🚀 Start deleting the images... 2024/10/09 03:36:19 [INFO] : === Overall Progress - image 196 / 195 === 2024/10/09 03:36:19 [INFO] : image: docker://quay.io/openshift-release-dev/ocp-release:4.16.14-x86_64 2024/10/09 03:36:19 [INFO] : =========================================== 2024/10/09 03:36:19 [INFO] : === Overall Progress - image 197 / 195 === 2024/10/09 03:36:19 [INFO] : image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:00729267d701d8ddd33f1d754929d148f84178f70678ea9065546c90de0f4a66 2024/10/09 03:36:19 [INFO] : =========================================== 2024/10/09 03:36:19 [INFO] : === Overall Progress - image 198 / 195 === .... 2024/10/09 03:36:20 [INFO] : === Overall Progress - image 390 / 195 === 2024/10/09 03:36:20 [INFO] : image: docker://registry.redhat.io/openshift4-wincw/windows-machine-config-rhel9-operator@sha256:8bf4f7395ad0015abfdcdf80945ce3d90461ee62730954a3da00f5bf838f79eb 2024/10/09 03:36:20 [INFO] : =========================================== 2024/10/09 03:36:20 [INFO] : === Results === 2024/10/09 03:36:20 [INFO] : Images deleted 390 / 195: Some images failed to delete ❌ - please check the logs 2024/10/09 03:36:20 [INFO] : delete time : 3.374797259s openshift/graph-image
Expected results:
4) seems the delete try to delete images mirrored by v1, but all failed.
Additional info:
- links to
-
RHEA-2024:6122 OpenShift Container Platform 4.18.z bug fix update