Description of problem:
When set graph==true for v1, will mirror registry.access.redhat.com/ubi8/ubi-micro , but compared with v2, we don't mirror it . so after delete , this image will remain
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:"v0.2.0-alpha.1-309-g63a5556", GitCommit:"63a5556a", GitTreeState:"clean", BuildDate:"2024-10-23T02:42:55Z", GoVersion:"go1.23.0", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
Always
Steps to Reproduce:
1. mirror ocp with graph==true for v1: kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 mirror: platform: graph: true channels: - name: stable-4.15 `oc-mirror -c config-v1.yaml docker://localhost:5000/m2m --dest-use-http` 2. mirror ocp with graph==true for v2 by dry-run with the same path: kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: platform: graph: true channels: - name: stable-4.15 `oc-mirror -c config-v2.yaml --workspace file://wsdry-run docker://localhost:5000/m2m --v2 --dest-tls-verify=false --dry-run` 3. generate the delete image list with config : kind: DeleteImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 delete: platform: graph: true channels: - name: stable-4.15 `oc-mirror -c config-d-v2.yaml delete --generate --workspace file://wsdry-run docker://localhost:5000/m2m --v2 --dest-tls-verify=false` 4. Execute the delete action: `oc-mirror delete --delete-yaml-file wsdry-run/working-dir/delete/delete-images.yaml docker://localhost:5000/m2m --v2 --dest-tls-verify=false`
Actual results:
4. All the ocp release images manifest deleted except for image registry.access.redhat.com/ubi8/ubi-micro, because v2 is not aware of it.
Expected results:
4. Could also delete image about registry.access.redhat.com/ubi8/ubi-micro
Additional info:
- is cloned by
-
OCPBUGS-43729 v2 delete is not aware of storageConfig images mirrored by v1
- New