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

Missing condition to explicitly block live migration when CNI does not support live-migration

XMLWordPrintable

    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Moderate
    • None

      Description of problem:

      Certain CNIs, such as Calico and Cilium, do not currently support live migration.
      
      However, there is no explicit validation or blocking condition in KubeVirt/OpenShift Virtualization to prevent live migration when such CNIs are in use.
      --------------
      From the KubeVirt codebase, the following condition is considered for the network requirement:
      `cannot migrate VMI which does not use masquerade or a migratable plugin to connect to the pod network`
      https://github.com/kubevirt/kubevirt/blob/6becdb4d94d1e3ba143e8d095c89024630e2ff6a/pkg/network/vmispec/interface.go#L87C1-L88C1
      
      Even the documentation does not comment on any such condition:
       https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html/virtualization/live-migration#live-migration-requirements_virt-about-live-migration

      How reproducible:

      Everytime

      Steps to Reproduce:

      1. Ensure CNI such as calico, cilium are in use
      2. live-Migrate VM 
      

      Actual results:

      VMI is marked as liveMigratable: True

      Expected results:

      VMI should get marked as liveMigratable: False

      Additional info:

      There is no condition specified that explicitly blocks live migration when the CNI in use does not yet support live migration. 
      As a result, the VM is able to initiate migration, but the migration gets stuck with the issues mentioned in 
      
      https://issues.redhat.com/browse/OCPBUGS-57594
      

              tnisan@redhat.com Tal Nisan
              rhn-support-harspati Harshada Patil
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: