<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On May 16, 2017, at 4:28 PM, Martin Kletzander <<a href="mailto:mkletzan@redhat.com" class="">mkletzan@redhat.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">On Tue, May 16, 2017 at 08:11:54PM +0000, Innus, Martins wrote:<br class="">
<blockquote type="cite" class=""><br class="">
<blockquote type="cite" class="">On May 16, 2017, at 3:49 PM, Martin Kletzander <<a href="mailto:mkletzan@redhat.com" class="">mkletzan@redhat.com</a>> wrote:<br class="">
<br class="">
On Tue, May 16, 2017 at 06:41:05PM +0000, Innus, Martins wrote:<br class="">
<blockquote type="cite" class="">Hi,<br class="">
<br class="">
Running on:<br class="">
<br class="">
$ cat /etc/redhat-release<br class="">
CentOS Linux release 7.3.1611 (Core)<br class="">
<br class="">
And:<br class="">
<br class="">
$ rpm -qa |grep libvirt<br class="">
libvirt-daemon-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-client-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-storage-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-config-network-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-python-2.0.0-2.el7.x86_64<br class="">
libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-lxc-2.0.0-10.el7_3.5.x86_64<br class="">
libvirt-daemon-driver-interface-2.0.0-10.el7_3.5.x86_64<br class="">
<br class="">
I’m seeing duplicated reboot events when using the python event api.  Use is simplified down to the simple test case attached.  Running with that results in:<br class="">
<br class="">
$ sudo ./libvirt_events_single.py<br class="">
Reboot: Domain i-06945b37(21)<br class="">
1494958504.72<br class="">
Reboot: Domain i-06945b37(21)<br class="">
1494958504.74<br class="">
<br class="">
</blockquote>
<br class="">
Can you try with newer libvirt?<br class="">
</blockquote>
<br class="">
I’m not sure.  I will have to see if I can build it, unless there is a repo somewhere with centos7 rpms.  I assume by this you mean that you don’t see this with current libvirt?<br class="">
<br class="">
<blockquote type="cite" class="">Does this happen with 'virsh event<br class="">
--loop --event lifecycle’?<br class="">
</blockquote>
<br class="">
“lifecycle” shows no output, but with “reboot” or “all”:<br class="">
<br class="">
$ sudo virsh event --loop --all<br class="">
event 'reboot' for domain i-06945b37<br class="">
event 'reboot' for domain i-06945b37<br class="">
<br class="">
<blockquote type="cite" class=""><br class="">
Is there anything fishy going on when looking at the console (VN/spice)<br class="">
during that reboot?<br class="">
</blockquote>
<br class="">
<br class="">
Don’t see anything unusual.  I can send you the full console output if you want, but I don’t see anything strange.<br class="">
<br class="">
</blockquote>
<br class="">
I meant the graphical terminal, but that won't help much.  I tried<br class="">
gathering as much info.  So we just need to figure out whether QEMU<br class="">
sends us the event multiple times.  Could you either set up debug logs<br class="">
[1] and then look for that in them or use the qemu-monitor.stp systemtap<br class="">
script to show you what's happening on the monitor?  If it comes from<br class="">
qemu two times, than there's not much we can do about it.<br class="">
<br class="">
</div>
</div>
</blockquote>
<br class="">
</div>
<div><br class="">
</div>
<div>Nevermind, as far as I can tell, this is a bug in QEMU and is closed as a WONTFIX: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=951525" class="">https://bugzilla.redhat.com/show_bug.cgi?id=951525</a></div>
<div><br class="">
</div>
<div>Thanks for the debugging help.</div>
<div><br class="">
</div>
<div>Martins</div>
<div><br class="">
</div>
<br class="">
</body>
</html>