Description of problem:
When mirror the catalog source , the rendered catalog image will not be deleted by v2 .
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 catalogsource by v1: kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v1alpha2 mirror: operators: - catalog: oci:///test/redhat-operator-index packages: - name: cluster-kube-descheduler-operator `oc-mirror -c config-oci-v1.yaml docker://localhost:5000 --dest-use-http` 2. mirror by v2 again: kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: oci:///test/redhat-operator-index packages: - name: cluster-kube-descheduler-operator `oc-mirror -c config-oci-v2.yaml file://v2m2mdry --v2` `oc-mirror -c config-oci-v2.yaml --from file://v2m2mdry --v2 docker://localhost:5000 --dest-tls-verify=false` 3. generate the delete image list with config : kind: DeleteImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 delete: operators: - catalog: oci:///test/redhat-operator-index packages: - name: cluster-kube-descheduler-operator `oc-mirror delete -c config-d-oci.yaml --generate --workspace file://v2m2mdry docker://localhost:5000 --v2 --dest-tls-verify=false` 4. Execute the delete action
Actual results:
4. The rendered catalog images created by v1 will be remain as v2 is not aware of it.
Expected results:
4. Delete all the images.
Additional info:
- clones
-
OCPBUGS-43774 v2 delete hit error when v1 set with targetCatalog and targetTag
- Closed
- is cloned by
-
OCPBUGS-43986 Normal user can't run the oc-mirror command
- Closed
- 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