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

[2228036] Virt-Launcher Pod Node Drain stuck when HCO evictionStrategy is set "None" and VM is not restarted

XMLWordPrintable

    • CNV Virtualization Sprint 240
    • High
    • No

      Description of problem: Initially a VM running with HCO evictionStrategy:LiveMigrate , when we update HCO evictionStrategy:None and without restsrting the vm do node drain , Virt-launcher pod does not drain , and node drain is stuck with following error:

      error when evicting pods/"virt-launcher-vm2-rhel88-ocs-nxl4s" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
      evicting pod default/virt-launcher-vm2-rhel88-ocs-nxl4s

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

      How reproducible:
      100% on a bm cluster

      Steps to Reproduce:
      1.initially at HCO evictionStrategy:LiveMigrate
      2.create a vm (VM is running) (no evictionStrategy field in VM spec)
      3.edit hco with evictionStrategy: None
      4.do not restart vm
      5.do node drain

      Actual results: Node drain is stuck while draining virt-launcher pod
      error when evicting pods/"virt-launcher-vm2-rhel88-ocs-nxl4s" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
      evicting pod default/virt-launcher-vm2-rhel88-ocs-nxl4s

      Expected results:Node drain is successful and VM Restarted on another node

      Additional info:

              acardace@redhat.com Antonio Cardace
              akrgupta@redhat.com Akriti gupta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: