Vinzenz Feenstra has posted comments on this change.
Change subject: virt: Try to detect non guest iniated shutdowns ......................................................................
Patch Set 7:
Verification:
EL7 guest with guest agent supporting the messages:
When VM gets killed on the host with `kill -15 $PID`:
2016-10-13 16:49:17,105 INFO (libvirtEventLoop) [virt.vm] vmId=`03cfa007-f94c-4762-b497-a3c5fcd1b716`::Changed state to Down: VM has been terminated on the host (code=11) (vm:1166)
When shutdown from within the vm:
libvirtEventLoop::INFO::2016-10-13 16:36:41,423::vm::1150::virt.vm::(setDownStatus) vmId=`03cfa007-f94c-4762-b497-a3c5fcd1b716`::Changed state to Down: User shut down from within the guest (code=7)