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

[SCMIG] virtualmachinestoragemigration keeps in WaitForLiveMigrationToComplete phase even the migration is finished

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • CNV v4.21.0
    • CNV v4.21.0
    • Storage Platform
    • None
    • Product / Portfolio Work
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV Storage Sprint 281
    • None

      Description of problem:

      virtualmachinestoragemigration keeps in WaitForLiveMigrationToComplete phase even the migration is finished

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

      CNV-v4.21.0.rhel9-83

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VM 
      2. Create a VirtualMachineStorageMigrationPlan
      3. Create a VirtualMachineStorageMigration to start the migration
      4. Monitor the virt-laucher pods, DV/PVC,  VirtualMachineStorageMigrationPlan and VirtualMachineStorageMigration

      Actual results:

      We can see the new virt-laucher pod running and old one is completed. VM is pointing to the new disk
      $ oc get dv
      NAME                            PHASE       PROGRESS   RESTARTS   AGE
      cirros-dv-source-ocs            Succeeded   100.0%                58m
      cirros-dv-source-ocs-mig-zf5t   Succeeded   100.0%                31m
      $ oc get pvc
      NAME                            STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS                  VOLUMEATTRIBUTESCLASS   AGE
      cirros-dv-source-ocs            Bound    pvc-2693fc7b-5045-4a22-bf10-58e5fc77c3fd   1Gi        RWX            ocs-storagecluster-ceph-rbd   <unset>                 59m
      cirros-dv-source-ocs-mig-zf5t   Bound    pvc-d426fd98-e203-4ac1-85df-474101b1b051   329Gi      RWO            hostpath-csi-basic            <unset>                 31m
      $ oc get pod
      NAME                                       READY   STATUS      RESTARTS   AGE
      virt-launcher-vm-cirros-source-ocs-wjdbw   0/2     Completed   0          58m
      virt-launcher-vm-cirros-source-ocs-x52br   2/2     Running     0          31m
      
      But the virtualmachinestoragemigrationplan COMPLETED VMS 0/1  
      $ oc get virtualmachinestoragemigrationplan
      NAME              READY   PROGRESSING   COMPLETED VMS   AGE
      cirros-mig-plan   True    True          0/1             33m
      
      virtualmachinestoragemigration keeps in WaitForLiveMigrationToComplete  phase
      $  oc get virtualmachinestoragemigration
      NAME                   PLAN              PHASE                            AGE
      cirros-mig-migration   cirros-mig-plan   WaitForLiveMigrationToComplete   32m
      
      $ oc describe virtualmachinestoragemigration
      Name:         cirros-mig-migration
      Namespace:    mig
      Labels:       <none>
      Annotations:  <none>
      API Version:  migrations.kubevirt.io/v1alpha1
      Kind:         VirtualMachineStorageMigration
      Metadata:
        Creation Timestamp:  2025-12-18T04:51:12Z
        Finalizers:
          virtualmachinestoragemigration.kubevirt.io/finalizer
        Generation:        1
        Resource Version:  123622
        UID:               9d810057-916a-454c-8d6b-832ec354eeec
      Spec:
        Virtual Machine Storage Migration Plan Ref:
          Name:  cirros-mig-plan
      Status:
        Conditions:
          Category:              Critical
          Last Transition Time:  2025-12-18T04:51:12Z
          Message:               The referenced `virtualMachineStorageMigrationPlanRef` has critical conditions, subject: mig/cirros-mig-plan
          Reason:                NotReady
          Status:                True
          Type:                  PlanNotReady
        Phase:                   WaitForLiveMigrationToComplete
        Running Migrations:
          Name:  vm-cirros-source-ocs
      Events:    <none>
      
      

      Expected results:

      Both VirtualMachineStorageMigrationplan and VirtualMachineStorageMigration should be completed after migration finished. 

      Additional info:

       

              akalenyu Alex Kalenyuk
              yadu1@redhat.com Yan Du
              Natalie Gavrielov Natalie Gavrielov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: