Bug 1858777 - Alert for VM with 'evictionStrategy: LiveMigrate' for local PVs set
Summary: Alert for VM with 'evictionStrategy: LiveMigrate' for local PVs set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 2.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.9.0
Assignee: sgott
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-20 11:46 UTC by Ruth Netser
Modified: 2021-11-02 15:58 UTC (History)
3 users (show)

Fixed In Version: virt-operator-container-v4.9.0-25 hco-bundle-registry-container-v4.9.0-89
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1964954 (view as bug list)
Environment:
Last Closed: 2021-11-02 15:57:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 5392 0 None closed Generate an Event, and a Prometheus based Alert for non evictable VMs 2021-05-26 12:23:43 UTC
Red Hat Product Errata RHSA-2021:4104 0 None None None 2021-11-02 15:58:40 UTC

Internal Links: 1857790

Description Ruth Netser 2020-07-20 11:46:09 UTC
Description of problem:
If a VM is using local PV and its evictionStrategy: LiveMigrate, OCP upgrade would result with nodes in "Ready,SchedulingDisable" state.
As a VM with local PVs and evictionStrategy: LiveMigrate is not a supported use case at the moment, such VMs should be blocked from running.


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

Comment 1 Israel Pinto 2020-07-21 12:01:09 UTC
Doc BZ for 2.4: https://bugzilla.redhat.com/show_bug.cgi?id=1859129

Comment 2 Ruth Netser 2020-08-02 08:35:00 UTC
The same block logic should also be applied to VMs with pass-through features such as SRIOV and GPU

Comment 3 Jed Lejosne 2020-08-05 15:42:24 UTC
I addressed both SRIOV and GPUs there: https://github.com/kubevirt/kubevirt/pull/3944
Local PVs is more complicated, since we don't know at VMI creation if PVs are local or not.

Comment 4 Kedar Bidarkar 2020-08-19 12:28:39 UTC
Further design work needs to be done for this bug and so we plan to move it to future for now.

Comment 6 Kedar Bidarkar 2021-08-30 20:20:55 UTC
name: VMCannotBeEvicted
expr: kubevirt_vmi_non_evictable > 0
for: 1m
labels:
severity: warning
annotations:
description: Eviction policy for {{ $labels.name }} (on node {{ $labels.node }}) is set to Live Migration but the VM is not migratable
summary: The VM's eviction strategy is set to Live Migration but the VM is not migratable

---

Created a VM with HostPathProvisioner as the StorageClass.

Accessed the Prometheus URL and we see the above alert "VMCannotBeEvicted"

VERIFIED with virt-operator/images/v4.9.0-35

Comment 9 errata-xmlrpc 2021-11-02 15:57:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 4.9.0 Images security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4104


Note You need to log in before you can comment on or make changes to this bug.