Change in vdsm[master]: Add an option to create a watchdog device.

danken at redhat.com danken at redhat.com
Tue Nov 20 16:21:15 UTC 2012


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 <shaohef at linux.vnet.ibm.com>
---
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 <shaohef at linux.vnet.ibm.com>
Gerrit-Reviewer: Adam Litke <agl at us.ibm.com>
Gerrit-Reviewer: Bing Bu Cao <mars at linux.vnet.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: Michael Burns <mburns at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: Peter V. Saveliev <peet at redhat.com>
Gerrit-Reviewer: Ryan Harper <ryanh at us.ibm.com>
Gerrit-Reviewer: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Gerrit-Reviewer: Shu Ming <shuming at linux.vnet.ibm.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: Xu He Jie <xuhj at linux.vnet.ibm.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list