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

[v2] The delete workflow shown is MirrorToDisk for MirrorToMirror Delete Workflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.18
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • CLID Sprint 274, CLID Sprint 275, CLID Sprint 276
    • 3
    • Done
    • Bug Fix
    • Hide
      Before this update, the delete workflow erroneously displayed `workflow mode: diskToMirror / delete`, leading to user confusion regarding the correct workflow mode. With this release, 'workflow mode: delete` displays during delete operations. (link:https://issues.redhat.com/browse/OCPBUGS-59966[OCPBUGS-59966])
      Show
      Before this update, the delete workflow erroneously displayed `workflow mode: diskToMirror / delete`, leading to user confusion regarding the correct workflow mode. With this release, 'workflow mode: delete` displays during delete operations. (link: https://issues.redhat.com/browse/OCPBUGS-59966 [ OCPBUGS-59966 ])
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-59761. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-54622. The following is the description of the original issue:

      Description of problem:

       The Delete workflow displays MirrorToDisk for MirrorToMirror Workflow

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          Always

      Steps to Reproduce:

          1.Perform M2M using the command 'oc-mirror -c isc.yaml --workspace file://reg docker://localhost:5000 --dest-tls-verify=false --v2'
          2.Use the command 'oc-mirror delete -c delisc.yaml --generate --workspace file://reg docker://localhost:5000 --v2 --dest-tls-verify=false'       3.Perform the delete workflow using the command 'oc-mirror delete --delete-yaml-file reg/working-dir/delete/delete-images.yaml docker://localhost:5000 --v2 --dest-tls-verify=false'     

      Actual results:

      Result after the command 'oc-mirror delete -c delisc.yaml --generate --workspace file://reg docker://localhost:5000 --v2 --dest-tls-verify=false'
      
      2025/04/04 11:29:57  [INFO]   : 👋 Hello, welcome to oc-mirror
      2025/04/04 11:29:57  [INFO]   : ⚙️  setting up the environment for you...
      2025/04/04 11:29:57  [INFO]   : 🔀 workflow mode: diskToMirror / delete
      2025/04/04 11:29:57  [INFO]   : 🕵  going to discover the necessary images...
      2025/04/04 11:29:57  [INFO]   : 🔍 collecting release images...
      2025/04/04 11:29:57  [INFO]   : 🔍 collecting operator images...
       ✓   () Collecting catalog registry.redhat.io/redhat/redhat-operator-index:v4.17 
      2025/04/04 11:29:57  [INFO]   : 🔍 collecting additional images...
      2025/04/04 11:29:57  [INFO]   : 🔍 collecting helm images...
      2025/04/04 11:29:57  [INFO]   : 📄 Generating delete file...
      2025/04/04 11:29:57  [INFO]   : reg/working-dir/delete file created
      2025/04/04 11:29:57  [INFO]   : delete time     : 147.349335ms
      2025/04/04 11:29:57  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      
      [fedora@knarra-fedora bug]$ ./oc-mirror delete --delete-yaml-file reg/working-dir/delete/delete-images.yaml docker://localhost:5000 --v2 --dest-tls-verify=false 2025/04/04 11:33:18  [INFO]   : 👋 Hello, welcome to oc-mirror
      2025/04/04 11:33:18  [INFO]   : ⚙️  setting up the environment for you...
      2025/04/04 11:33:18  [INFO]   : 🔀 workflow mode: diskToMirror / delete
      2025/04/04 11:33:18  [INFO]   : 👀 Reading delete file...
      2025/04/04 11:33:18  [INFO]   : 🚀 Start deleting the images...
      2025/04/04 11:33:18  [INFO]   : 📌 images to delete 224 
       

      Expected results:

      🔀 workflow mode: MirrorToMirror / delete

      Additional info:

      ISC file used:
      
      [fedora@knarra-fedora bug]$ cat isc.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      archiveSize: 4
      mirror:
        platform:
          channels:
          - name: stable-4.17
            type: ocp
            minVersion: 4.17.12
            maxVersion: 4.17.12
          graph: true
        operators:
        - catalog: oci:///home/fedora/redhat-operator-index
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
          packages:
          - name: ansible-automation-platform-operator
            defaultChannel: stable-2.4
            channels:
            - name: stable-2.4
        helm:
          repositories:
            - name: podinfo
              url: https://stefanprodan.github.io/podinfo
              charts:
                - name: podinfo
                  version: 6.0.0
            - name: sbo
              url: https://redhat-developer.github.io/service-binding-operator-helm-chart/
        additionalImages:
        - name: registry.redhat.io/ubi8/ubi:latest
        - name: registry.redhat.io/ubi9/ubi:latest
      
      ==========================================================================
      
      [fedora@knarra-fedora bug]$ cat delisc.yaml 
      kind: DeleteImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      delete:
        platform:
          channels:
          - name: stable-4.17
            type: ocp
            minVersion: 4.17.12
            maxVersion: 4.17.12
          graph: true
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
          packages:
          - name: ansible-automation-platform-operator
            defaultChannel: stable-2.4
            channels:
            - name: stable-2.4
        helm:
          repositories:
            - name: podinfo
              url: https://stefanprodan.github.io/podinfo
              charts:
                - name: podinfo
                  version: 6.0.0
            - name: sbo
              url: https://redhat-developer.github.io/service-binding-operator-helm-chart/
        additionalImages:
        - name: registry.redhat.io/ubi8/ubi:latest
        - name: registry.redhat.io/ubi9/ubi:latest

              rdossant Rafael Fonseca dos Santos
              rh-ee-ngavali Nidan Gavali
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: