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

[SCMIG] virtualmachinestoragemigrationplan is not ready for a stopped/paused VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • CNV v4.21.z
    • CNV v4.21.0
    • Storage Platform
    • None
    • Quality / Stability / Reliability
    • 8
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV Storage Sprint 283, CNV Storage Sprint 284, CNV Storage Sprint 285
    • None

      Description of problem:

      virtualmachinestoragemigrationplan is not ready for a stopped/paused VM

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

      CNV-v4.21.0.rhel9-122

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VM and stop it
      2. Create a virtualmachinestoragemigrationplan
      3. Check the virtualmachinestoragemigrationplan status  

      Actual results:

      The virtualmachinestoragemigrationplan is never ready due to the vm is not ready
      $ oc get virtualmachinestoragemigrationplan
      NAME        READY   PROGRESSING   COMPLETED VMS   AGE
      vmscplan1   False   False         0/1             11s
      
      $ oc describe virtualmachinestoragemigrationplan
      Name:         vmscplan1
      Namespace:    mig1
      Labels:       <none>
      Annotations:  <none>
      API Version:  migrations.kubevirt.io/v1alpha1
      Kind:         VirtualMachineStorageMigrationPlan
      Metadata:
        Creation Timestamp:  2026-01-06T12:20:08Z
        Generation:          1
        Resource Version:    1467569
        UID:                 20b40e10-e277-4a35-b171-f1e3b4d44806
      Spec:
        Virtual Machines:
          Name:  centos
          Target Migration PV Cs:
            Destination PVC:
              Access Modes:
                Auto
              Name:                centos-new-pvc
              Storage Class Name:  ocs-storagecluster-ceph-rbd
              Volume Mode:         Auto
            Volume Name:           rootdisk
      Status:
        Completed Out Of:  0/1
        Conditions:
          Category:              Critical
          Last Transition Time:  2026-01-06T12:20:08Z
          Message:               No virtual machines are ready for storage migration
          Reason:                NotReady
          Status:                True
          Type:                  NotAllVirtualMachinesReady
          Category:              Required
          Last Transition Time:  2026-01-06T12:20:08Z
          Message:               plan has one or more critical conditions
          Status:                False
          Type:                  Ready
          Category:              Required
          Last Transition Time:  2026-01-06T12:20:08Z
          Message:               no storage migrations found
          Status:                False
          Type:                  Progressing
        Suffix:                  gxzl
      Events:                    <none>
      
      

      Expected results:

      Storage class migration can be working well for a stopped/paused vm

      Additional info:

      stopped VM can do storage class migration by MTC

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

                Created:
                Updated: