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

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Thu Oct 25 04:11:17 UTC 2012


ShaoHe Feng has posted comments on this change.

Change subject: Add an option to create a watchdog device.
......................................................................


Patch Set 11: Verified

how to verified this patch.

Maybe there is no a UI in engine to add a watchdog device.

you can start a vm directly by vdsm with a wathdog device parameter. http://wiki.ovirt.org/wiki/Vdsm_Standalone 

add a wathdog device parameter
dev_list = [{'device': 'watchdog', 'type': 'watchdog', 'specParams': {'model': 'ib700', 'action': "dump"}}


vdsOK(
    s.create(dict(vmId=vmId,
                  drives=[dict(poolID=spUUID, domainID=sdUUID, imageID=imgUUID, volumeID=volUUID)],
                  memSize=256,
		  display="vnc",
                  vmName="vm1",
                  devices = dev_list,
                 )
            )
)

after the vm start up, you can use virsh to watch the watchdog device in xml.
# virsh -c qemu:///system sudo virsh -c qemu:///system dumpxml vm1.

you can also log on vm1
# ls /dev/watchdog
but some os such as ubuntu will add the watchdog automatically for the udev rule.

--
To view, visit http://gerrit.ovirt.org/7535
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2b7970a9050ab0279fe03371b9a77692fba30af8
Gerrit-PatchSet: 11
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: 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: 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: Xu He Jie <xuhj at linux.vnet.ibm.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