Dan Kenigsberg has submitted this change and it was merged.
Change subject: Add an option to create a watchdog device.
......................................................................
Add an option to create a watchdog device.
A support for a watchdog device was added to the "devices"
configuration.
Also add the watchdog event callback to log the watchdog action
of VM.
model of watchdog:
'i6300esb' default model, emulating a PCI Intel 6300ESB
'ib700' emulating an ISA iBase IB700
Only one watchdog device is supported for each VM.
action of watchdog timeout:
'reset' forcefully reset the guest
'shutdown' gracefully shutdown the guest (not recommended)
'poweroff' forcefully power off the guest
'pause' pause the guest
'none' default, do nothing
'dump' automatically dump the guest
the parameter of 'watchdog' device as follow:
{'device': 'watchdog', 'type': 'watchdog',
'specParams': {'model': 'i6300esb', 'action': 'none'}}
The watchdog device can be used to detect guest crash or hang, and
if 'dump' is chosen for the action of watchdog timeout, libvirt will
dump guest's memory on timeout automatically.
The directory to save dump files can be configured by auto_dump_path
in file /etc/libvirt/qemu.conf.
The watchdog device requires an additional driver and management
daemon in the guest. Just enabling the watchdog in the vdsm
"devices" configuration does not do anything useful on its own.
Change-Id: I2b7970a9050ab0279fe03371b9a77692fba30af8
Signed-off-by: ShaoHe Feng <[email protected]>
---
M tests/libvirtvmTests.py
M vdsm/libvirtconnection.py
M vdsm/libvirtvm.py
M vdsm/vdsmd.init.in
M vdsm/vm.py
M vdsm_api/vdsmapi-schema.json
6 files changed, 182 insertions(+), 5 deletions(-)
Approvals:
ShaoHe Feng: Verified
Vinzenz Feenstra: Looks good to me, but someone else must approve
Dan Kenigsberg: Looks good to me, approved
Michal Skrivanek: Looks good to me, but someone else must approve
--
To view, visit http://gerrit.ovirt.org/7535
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2b7970a9050ab0279fe03371b9a77692fba30af8
Gerrit-PatchSet: 13
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Adam Litke <[email protected]>
Gerrit-Reviewer: Bing Bu Cao <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Mark Wu <[email protected]>
Gerrit-Reviewer: Michael Burns <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Peter V. Saveliev <[email protected]>
Gerrit-Reviewer: Ryan Harper <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Shu Ming <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: Xu He Jie <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches