Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-43831

The catalog rendered images created by v1 can't be aware of v2 and will remain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.18
    • oc-mirror
    • Moderate
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None
    • Hide
      *Cause*: What actions or circumstances cause this bug to present.
      *Consequence*: What happens when the bug presents.
      *Fix*: What was done to fix the bug.
      *Result*: Bug doesn’t present anymore.
      Show
      *Cause*: What actions or circumstances cause this bug to present. *Consequence*: What happens when the bug presents. *Fix*: What was done to fix the bug. *Result*: Bug doesn’t present anymore.
    • Bug Fix
    • In Progress

      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:

       
          

       

            luzuccar@redhat.com Luigi Mario Zuccarelli
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: