Bug 997539

Summary: VM doesnt go to status pause after watchdog action 'dump' is triggered
Product: Red Hat Enterprise Virtualization Manager Reporter: Lukas Svaty <lsvaty>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED NOTABUG QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, dfediuck, iheim, lhornyak, lpeer, lsvaty, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: All   
OS: Linux   
URL: http://www.ovirt.org/Features/Watchdog_engine_support
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-16 14:22:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log of actions
none
engine.log of start VM action
none
engine.log of start VM action
none
vdsm.log of action dump
none
engine.log of action dumb none

Description Lukas Svaty 2013-08-15 14:24:36 UTC
Description of problem:
Based on specification on:

http://www.ovirt.org/Features/Watchdog_engine_support

VM after triggering watchdog (kill -9 `pgrep watchdog`) with action 'dump' should go to status pause. However VM stay in up status.
This is officialy supported by libvirt based on:

http://libvirt.org/formatdomain.html

Version-Release number of selected component (if applicable):
is10

How reproducible:
100%

Steps to Reproduce:
1. Add Vm with watchdog
2. Set action to dump
3. Install Linux OS
In VM run:
4. yum -y install watchdog
5. sed -i 's/#w/w/' /etc/watchdog.conf
6. service watchdog start
7. kill -9 `pgrep watchdog`

Actual results:
Vm stays in status up and dump file located in specified by:

# grep ^auto_dump_path < /etc/libvirt/qemu.conf 

is created

Aditional info:
It is unclear if RHEVM should pause the VM by specification on ovirt wiki or go with the libvirt version.

Comment 1 Doron Fediuck 2013-08-20 13:53:08 UTC
Lukas,
the paused mode is set by the device.

Can you check what vdsm reports on this VM and also what libvirt reports?

Comment 2 Laszlo Hornyak 2013-08-28 17:12:18 UTC
Reproduced on upstream, the engine kicks it back to running state.
Try it like this:
- start a VM with i6300esb and pause
- kill the watchdog process
- immediately kill the engine
- ssh to host
- virsh (vdsm@ovirt shibboleth)
- list - and see the Vm as paused

Comment 3 Laszlo Hornyak 2013-08-30 13:21:50 UTC
After some test, it turned out that it was not the engine that kicked back the VM to running state. Even when the engine is down, the VM goes back to running state. So if this is a bug, then it belongs to libvirt.

Also, the default dump directory (/var/lib/libvirt/qemu/dump/) does not exist after fresh installation of libvirt, therfore the dumps are not created.

Comment 4 Lukas Svaty 2013-08-30 17:16:14 UTC
Created attachment 792259 [details]
vdsm.log of actions

adding VDSM.log of action starting the VM + 5 mins waiting for watchdog action to be triggered

Comment 5 Lukas Svaty 2013-08-30 17:17:08 UTC
Created attachment 792260 [details]
engine.log of start VM action

Comment 6 Lukas Svaty 2013-08-30 17:18:12 UTC
Created attachment 792261 [details]
engine.log of start VM action

Comment 7 Lukas Svaty 2013-08-30 17:28:10 UTC
Created attachment 792264 [details]
vdsm.log of action dump

Comment 8 Lukas Svaty 2013-08-30 17:30:17 UTC
Created attachment 792265 [details]
engine.log of action dumb

sorry for so many reuploads got mixed logs from two bugs
this should be fine now...

nothing special appeared in engine.log so this might be an libvirt issue as laszlo suggested

Comment 9 Laszlo Hornyak 2013-09-09 08:51:19 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1004400 - the related libvirt bug

Comment 11 Doron Fediuck 2013-09-16 14:22:49 UTC
This behavior originates from libvirt.
Re-open if there is engine-specific issues.