<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div> </div>
<div>Do you mean this sleep :</div>
<div> </div>
<div> <i># read() returns immediately (non-blocking) if no one is</i></div>
<div><i> # listening on the other side of the virtio-serial port.</i></div>
<div><i> # So in order not to be in a tight-loop and waste CPU</i></div>
<div><i> # time, we just sleep for a while and hope someone will</i></div>
<div><i> # be there when we will awake from our nap.</i></div>
<div><b> time.sleep(1)</b></div>
<div> </div>
<div> </div>
<div>Thx.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>J..P</div>
<div>-----Message d'origine-----<br>
De : users-bounces@ovirt.org [<a href="mailto:users-bounces@ovirt.org">mailto:users-bounces@ovirt.org</a>] De la part de users-request@ovirt.org<br>
Envoyé : vendredi 15 janvier 2016 10:54<br>
À : users@ovirt.org<br>
Objet : Users Digest, Vol 52, Issue 87</div>
<div> </div>
<div>Send Users mailing list submissions to</div>
<div> <a href="mailto:users@ovirt.org">users@ovirt.org</a></div>
<div> </div>
<div>To subscribe or unsubscribe via the World Wide Web, visit</div>
<div> <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a></div>
<div>or, via email, send a message with subject or body 'help' to</div>
<div> <a href="mailto:users-request@ovirt.org">users-request@ovirt.org</a></div>
<div> </div>
<div>You can reach the person managing the list at</div>
<div> <a href="mailto:users-owner@ovirt.org">users-owner@ovirt.org</a></div>
<div> </div>
<div>When replying, please edit your Subject line so it is more specific than "Re: Contents of Users digest..."</div>
<div> </div>
<div> </div>
<div>Today's Topics:</div>
<div> </div>
<div> 1. Re: What's going on open channel devices when migrating the</div>
<div> Guest ? (Vinzenz Feenstra)</div>
<div> 2. Re: Scripting Guests migration , shutdown and reboot ( from</div>
<div> ovirt) ? (Vinzenz Feenstra)</div>
<div> </div>
<div> </div>
<div>----------------------------------------------------------------------</div>
<div> </div>
<div>Message: 1</div>
<div>Date: Fri, 15 Jan 2016 10:51:50 +0100</div>
<div>From: Vinzenz Feenstra <<a href="mailto:vfeenstr@redhat.com">vfeenstr@redhat.com</a>></div>
<div>To: Jean-Pierre Ribeauville <<a href="mailto:jpribeauville@axway.com">jpribeauville@axway.com</a>></div>
<div>Cc: "<a href="mailto:users@ovirt.org">users@ovirt.org</a>" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>></div>
<div>Subject: Re: [ovirt-users] What's going on open channel devices when</div>
<div> migrating the Guest ?</div>
<div>Message-ID: <<a href="mailto:90F5CE30-927A-48A3-AC82-97118A1325B4@redhat.com">90F5CE30-927A-48A3-AC82-97118A1325B4@redhat.com</a>></div>
<div>Content-Type: text/plain; charset="utf-8"</div>
<div> </div>
<div> </div>
<div>> On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville <<a href="mailto:jpribeauville@axway.com">jpribeauville@axway.com</a>> wrote:</div>
<div>> </div>
<div>> Hi,</div>
<div>> </div>
<div>> I?m using a channel device between host and guest to exchange datas every 20 seconds.</div>
<div>> </div>
<div>> On the Guest size , there is an open /dev/virtio file on which we read </div>
<div>> continuously what?s sent by the host.</div>
<div>> </div>
<div>> My question is the following : </div>
<div>> When migrating the Guest to another host , and the migrating back to </div>
<div>> the first one , the Guest software doesn?t receive anymore datas from the host unless I restart the Guest software to re-open the /dev/virtio file.</div>
<div>> </div>
<div>> Is there any way to detect in the Guest that migration has been done so we have to reopen the file ?</div>
<div> </div>
<div>Well you can look how we do it in the ovirt-guest-agent. But we?re not reopening the unix domain socket - We?re basically on read failure just rescheduling the read - That causes no problems after migrations - it just continues </div>
<div> </div>
<div>Our python code for that is here: <a href="https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/VirtIoChannel.py">https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/VirtIoChannel.py</a></div>
<div> </div>
<div>HTH</div>
<div> </div>
<div>> </div>
<div>> Any hint is welcome .</div>
<div>> </div>
<div>> Thanks for help.</div>
<div>> </div>
<div>> </div>
<div>> J.P. Ribeauville</div>
<div>> </div>
<div>> P: +33.(0).1.47.17.20.49</div>
<div>> .</div>
<div>> Puteaux 3 Etage 5 Bureau 4</div>
<div>> </div>
<div>> <a href="mailto:jpribeauville@axway.com">jpribeauville@axway.com</a> <<a href="mailto:jpribeauville@axway.com">mailto:jpribeauville@axway.com</a>> </div>
<div>> <a href="http://www.axway.com">http://www.axway.com</a> <<a href="http://www.axway.com/">http://www.axway.com/</a>></div>
<div>> </div>
<div>> P Pensez ? l?environnement avant d?imprimer.</div>
<div>> </div>
<div>> </div>
<div>> _______________________________________________</div>
<div>> Users mailing list</div>
<div>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> <<a href="mailto:Users@ovirt.org">mailto:Users@ovirt.org</a>> </div>
<div>> <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </div>
<div>> <<a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>></div>
<div>-------------- next part --------------</div>
<div>An HTML attachment was scrubbed...</div>
<div>URL: <<a href="http://lists.ovirt.org/pipermail/users/attachments/20160115/6d80a2e0/attachment-0001.html">http://lists.ovirt.org/pipermail/users/attachments/20160115/6d80a2e0/attachment-0001.html</a>></div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>Message: 2</div>
<div>Date: Fri, 15 Jan 2016 10:53:31 +0100</div>
<div>From: Vinzenz Feenstra <<a href="mailto:vfeenstr@redhat.com">vfeenstr@redhat.com</a>></div>
<div>To: Jean-Pierre Ribeauville <<a href="mailto:jpribeauville@axway.com">jpribeauville@axway.com</a>></div>
<div>Cc: "<a href="mailto:users@ovirt.org">users@ovirt.org</a>" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>></div>
<div>Subject: Re: [ovirt-users] Scripting Guests migration , shutdown and</div>
<div> reboot ( from ovirt) ?</div>
<div>Message-ID: <<a href="mailto:2FABD1E6-4148-452A-B854-7CBD84CF7163@redhat.com">2FABD1E6-4148-452A-B854-7CBD84CF7163@redhat.com</a>></div>
<div>Content-Type: text/plain; charset="utf-8"</div>
<div> </div>
<div> </div>
<div>> On Jan 15, 2016, at 9:53 AM, Jean-Pierre Ribeauville <<a href="mailto:jpribeauville@axway.com">jpribeauville@axway.com</a>> wrote:</div>
<div>> </div>
<div>> Hi,</div>
<div>> </div>
<div>> In order to test reliability of some of my softwares running on Guest and Hosts, I would like to script</div>
<div>> from RHEV-M manager host , via command line interface, sequences for rebooting , migrate and shutdown/run KVM Guests.</div>
<div>> </div>
<div>> What?s your hint to achieve this ?</div>
<div> </div>
<div>Well you could use the Python SDK <a href="http://www.ovirt.org/Python-sdk">http://www.ovirt.org/Python-sdk</a></div>
<div> </div>
<div>> </div>
<div>> </div>
<div>> I cannot use virsh on the host cos theses domains are transient ones , so they disappear from the host virsh list as soon as they are off.</div>
<div>> </div>
<div>> </div>
<div>> Thx for your help.</div>
<div>> </div>
<div>> Regards,</div>
<div>> </div>
<div>> J.P. Ribeauville</div>
<div>> </div>
<div>> P: +33.(0).1.47.17.20.49</div>
<div>> .</div>
<div>> Puteaux 3 Etage 5 Bureau 4</div>
<div>> </div>
<div>> <a href="mailto:jpribeauville@axway.com">jpribeauville@axway.com</a> <<a href="mailto:jpribeauville@axway.com">mailto:jpribeauville@axway.com</a>> </div>
<div>> <a href="http://www.axway.com">http://www.axway.com</a> <<a href="http://www.axway.com/">http://www.axway.com/</a>></div>
<div>> </div>
<div>> P Pensez ? l?environnement avant d?imprimer.</div>
<div>> </div>
<div>> </div>
<div>> _______________________________________________</div>
<div>> Users mailing list</div>
<div>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> <<a href="mailto:Users@ovirt.org">mailto:Users@ovirt.org</a>> </div>
<div>> <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </div>
<div>> <<a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>></div>
<div>-------------- next part --------------</div>
<div>An HTML attachment was scrubbed...</div>
<div>URL: <<a href="http://lists.ovirt.org/pipermail/users/attachments/20160115/0c5c03a8/attachment.html">http://lists.ovirt.org/pipermail/users/attachments/20160115/0c5c03a8/attachment.html</a>></div>
<div> </div>
<div>------------------------------</div>
<div> </div>
<div>_______________________________________________</div>
<div>Users mailing list</div>
<div><a href="mailto:Users@ovirt.org">Users@ovirt.org</a></div>
<div><a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a></div>
<div> </div>
<div> </div>
<div>End of Users Digest, Vol 52, Issue 87</div>
<div>*************************************</div>
<div> </div>
</span></font>
</body>
</html>