mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
qemu: warn on pausing of guest due to watchdog or io error
Change the log level for pauses of guests due to watchdog timeouts or io errors from debug to warn to enhance the visibility of such events. Signed-off-by: Lennart Fricke <lennart.fricke@drehpunkt.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e478a6d3f3
commit
71a604fce6
@ -790,7 +790,7 @@ qemuProcessHandleWatchdog(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
if (action == VIR_DOMAIN_EVENT_WATCHDOG_PAUSE &&
|
||||
virDomainObjGetState(vm, NULL) == VIR_DOMAIN_RUNNING) {
|
||||
qemuDomainObjPrivate *priv = vm->privateData;
|
||||
VIR_DEBUG("Transitioned guest %s to paused state due to watchdog", vm->def->name);
|
||||
VIR_WARN("Transitioned guest %s to paused state due to watchdog", vm->def->name);
|
||||
|
||||
virDomainObjSetState(vm, VIR_DOMAIN_PAUSED, VIR_DOMAIN_PAUSED_WATCHDOG);
|
||||
lifecycleEvent = virDomainEventLifecycleNewFromObj(vm,
|
||||
@ -860,7 +860,7 @@ qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
if (action == VIR_DOMAIN_EVENT_IO_ERROR_PAUSE &&
|
||||
virDomainObjGetState(vm, NULL) == VIR_DOMAIN_RUNNING) {
|
||||
qemuDomainObjPrivate *priv = vm->privateData;
|
||||
VIR_DEBUG("Transitioned guest %s to paused state due to IO error", vm->def->name);
|
||||
VIR_WARN("Transitioned guest %s to paused state due to IO error", vm->def->name);
|
||||
|
||||
if (priv->signalIOError)
|
||||
virDomainObjBroadcast(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user