Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-63622

migration plans are not properly cleaned up by OCP-V UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • CNV v4.19.1
    • None
    • CNV User Interface
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.20.0.rhel9-30, CNV v4.20.0.rhel9-32, CNV v4.19.1.rhel9-2
    • None

      Description of problem:

      Because of limitations in MTC of one migration plan per namespace, it is imperative to clean up the migration plan after the migration completes. If you don't this makes it so no other VMs in that namespace can be storage live migrated. Once we switch to the OCP-V migration orchestrator this limitation will be removed, but we have to deal with it right now.

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

      OCP-V 4.19.0-RC6

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create a migration using the wizard in the UI.
      2. Wait for it to complete.
      3. Look in the storage migration plans list, and see the migration completed there. Now it is impossible to migrate another VM in the same namespace.

      Actual results:

      Only one migration is possible per namespace until a migration plan is deleted.

      Expected results:

      I can migrate VMs from the same namespace at will.

      Additional info:

      There are 2 possible mechanisms to achieve this with the known MTC limitation.
      1. Immediately delete the migration plan after completion, at which point the list of migration plans is kind of useless.
      2. Before creating another migration plan detect if there are any migration completed migration plans for the same namespace. If so delete those migration plans before creating the new one.
      
      As a side note which is also important because it will cause confusion when MTC completes a migration, it will mark the SOURCE PVC with a label indicating it was the source of a migration (the key of the label will be migration.openshift.io/source-for-directvolumemigration). If one tries to migrate back to the original PVC, this label confuses new migration plans, and in my testing I ended up with migration plans that had 0 PVs selected since the only PVC had that label and was excluded. I suggest that when we remove the migration plan (either option) we also remove the label from the PVC so we don't get this issue.

       

              upalatuc@redhat.com Ugo Palatucci
              rhn-support-awels Alexander Wels
              Guohua Ouyang Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: