case OCP-77693 - [CLID-253] support the delete helm for v2 with --force-cache-delete=true failed
Checked the result on Report Portal, has not passed the result
isc.yaml:
apiVersion: mirror.openshift.io/v2alpha1 kind: ImageSetConfiguration mirror: helm: repositories: - name: podinfo url: https://stefanprodan.github.io/podinfo charts: - name: podinfo version: 5.0.0 - name: sbo url: https://redhat-developer.github.io/service-binding-operator-helm-chart/
isc_delete.yaml:
apiVersion: mirror.openshift.io/v2alpha1 kind: DeleteImageSetConfiguration delete: helm: repositories: - name: podinfo url: https://stefanprodan.github.io/podinfo charts: - name: podinfo version: 5.0.0 - name: sbo url: https://redhat-developer.github.io/service-binding-operator-helm-chart/
steps:
1. m2m
oc-mirror -c isc.yaml docker://$HOST --workspace file://mywork --dest-tls-verify=false --v
2. generate the delete image file
./oc-mirror delete -c isc_delete.yaml docker://$HOST --v2 --workspace file://mywork --generate
3. delete image
./oc-mirror delete --delete-yaml-file ./mywork/working-dir/delete/delete-images.yaml docker://$HOST --v2 --dest-tls-verify=false --force-cache-delete=true
got error:
2025/12/10 11:41:04 [ERROR] : [Worker] error mirroring image quay.io/redhat-developer/servicebinding-operator@sha256:16286ac84ddd521897d92472dae857a4c18479f255b725dfb683bc72df6e0865 error: Unable to delete localhost:55000/redhat-developer/servicebinding-operator:sha256-16286ac84ddd521897d92472dae857a4c18479f255b725dfb683bc72df6e0865. Image may not exist or is not stored with a v2 Schema in a v2 registry ... 2025/12/10 11:41:04 [ERROR] : [Worker] error mirroring image ghcr.io/stefanprodan/podinfo:5.0.0 error: Unable to delete localhost:55000/stefanprodan/podinfo:5.0.0. Image may not exist or is not stored with a v2 Schema in a v2 registry
oc-mirror version: 4.21.0-202511110336
m2d, d2m, then delete with --force-cache-delete=true , no problem.
checked with 4.21.0-202512011821, without --force-cache-delete=true no issue