Description of problem:
When set storageConfig as registry for v1, after delete , the metadata related images still 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 storageConfig: registry: imageURL: localhost:5000/oc-mirror skipTLS: true 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 metadata images for storageConfig remained, because v2 is not aware of it.
Expected results:
4. Could also delete image about the metadata
Additional info:
- clones
-
OCPBUGS-43728 v2 delete is not aware of ubi8/ubi-micro images mirrored by v1 with graph==true
- New
- is cloned by
-
OCPBUGS-43774 v2 delete hit error when v1 set with targetCatalog and targetTag
- New
-
OCPBUGS-43731 v2 delete is not aware of all the tags created by v1
- ASSIGNED
- is related to
-
CLID-205 Migration feature
- Code Review
- relates to
-
CLID-235 As oc-mirror user, I would like the migration between v1 and v2 to be smooth
- Testing