mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu: Fix shutoff reason when domain crashes
Commit 4454a9efc728b91e791b1f14c26ea23a19d57f48 changed shutoff reason from VIR_DOMAIN_SHUTOFF_CRASHED to VIR_DOMAIN_SHUTOFF_FAILED in case we see an unexpected EOF on monitor connection. But FAILED reason is dedicated for domains that fail to start. CRASHED reason is the right one to use in this situation.
This commit is contained in:
parent
018f2e5c9f
commit
3acb664c56
@ -139,7 +139,7 @@ qemuProcessHandleMonitorEOF(qemuMonitorPtr mon ATTRIBUTE_UNUSED,
|
||||
VIR_DEBUG("Monitor connection to '%s' closed without SHUTDOWN event; "
|
||||
"assuming the domain crashed", vm->def->name);
|
||||
eventReason = VIR_DOMAIN_EVENT_STOPPED_FAILED;
|
||||
stopReason = VIR_DOMAIN_SHUTOFF_FAILED;
|
||||
stopReason = VIR_DOMAIN_SHUTOFF_CRASHED;
|
||||
auditReason = "failed";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user