-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-9.5
-
No
-
None
-
rhel-sst-virtualization
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
None
-
None
-
None
Description of problem:
Threshold event fires even the vm is idle
Version-Release number of selected component (if applicable):
- rpm -q libvirt qemu-kvm
libvirt-10.5.0-6.el9_5.x86_64
qemu-kvm-9.0.0-10.el9_5.x86_64
How reproducible:
80%
Steps to Reproduce:
1. Start a vm with virtio disk like as below, and keep it idel:
# virsh dumpxml test --xpath //disk <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2" index="1"/> <backingStore/> <target dev="sda" bus="sata"/> <alias name="sata0-0-0"/> <address type="drive" controller="0" bus="0" target="0" unit="0"/> </disk>
2. Set threshold for the disk sda, then check the status and event:
terminal 1:
# virsh domblkthreshold test sda 100 ; echo $? 0 # virsh domblkthreshold test sda 5000 ; echo $? 0 # virsh domblkthreshold test sda 2097152 ; echo $? 0 # virsh domblkthreshold test sda 209715200 ; echo $? 0
terminal2:
# virsh event test --all --loop event 'block-threshold' for domain 'test': dev: sda(/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 100 1435616668 event 'block-threshold' for domain 'test': dev: sda[1](/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 100 1435616668 event 'rtc-change' for domain 'test': 0 event 'block-threshold' for domain 'test': dev: sda(/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 5000 1457024120 event 'block-threshold' for domain 'test': dev: sda[1](/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 5000 1457024120 event 'block-threshold' for domain 'test': dev: sda(/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 2097152 1433544192 event 'block-threshold' for domain 'test': dev: sda[1](/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 2097152 1433544192 event 'rtc-change' for domain 'test': 0 event 'block-threshold' for domain 'test': dev: sda(/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 209715200 1252167680 event 'block-threshold' for domain 'test': dev: sda[1](/var/lib/libvirt/images/RHEL-9.5.0-20240903.5-x86_64-ovmf.qcow2) 209715200 1252167680 event 'rtc-change' for domain 'test': 0 event 'rtc-change' for domain 'test': 0
Actual results:
Threshold event fires even the vm is idle
Expected results:
Threshold event should not fire since the vm is idle
Additional info:
1) when we set threshold by "# virsh domblkthreshold test sda 2097152", what is the unit of the value 2097152?
2) for the event catched, "100 1435616668", what is the meaning of the last value?