Hi, Do you mean this sleep :
# read() returns immediately (non-blocking) if no one is # listening on the other side of the virtio-serial port. # So in order not to be in a tight-loop and waste CPU # time, we just sleep for a while and hope someone will # be there when we will awake from our nap. time.sleep(1) Thx. Regards, J..P -----Message d'origine----- De : users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] De la part de users-requ...@ovirt.org Envoyé : vendredi 15 janvier 2016 10:54 À : users@ovirt.org Objet : Users Digest, Vol 52, Issue 87 Send Users mailing list submissions to users@ovirt.org<mailto:users@ovirt.org> To subscribe or unsubscribe via the World Wide Web, visit http://lists.ovirt.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-requ...@ovirt.org<mailto:users-requ...@ovirt.org> You can reach the person managing the list at users-ow...@ovirt.org<mailto:users-ow...@ovirt.org> When replying, please edit your Subject line so it is more specific than "Re: Contents of Users digest..." Today's Topics: 1. Re: What's going on open channel devices when migrating the Guest ? (Vinzenz Feenstra) 2. Re: Scripting Guests migration , shutdown and reboot ( from ovirt) ? (Vinzenz Feenstra) ---------------------------------------------------------------------- Message: 1 Date: Fri, 15 Jan 2016 10:51:50 +0100 From: Vinzenz Feenstra <vfeen...@redhat.com<mailto:vfeen...@redhat.com>> To: Jean-Pierre Ribeauville <jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com>> Cc: "users@ovirt.org<mailto:users@ovirt.org>" <users@ovirt.org<mailto:users@ovirt.org>> Subject: Re: [ovirt-users] What's going on open channel devices when migrating the Guest ? Message-ID: <90f5ce30-927a-48a3-ac82-97118a132...@redhat.com<mailto:90f5ce30-927a-48a3-ac82-97118a132...@redhat.com>> Content-Type: text/plain; charset="utf-8" > On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville > <jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com>> wrote: > > Hi, > > I?m using a channel device between host and guest to exchange datas every 20 > seconds. > > On the Guest size , there is an open /dev/virtio file on which we read > continuously what?s sent by the host. > > My question is the following : > When migrating the Guest to another host , and the migrating back to > 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. > > Is there any way to detect in the Guest that migration has been done so we > have to reopen the file ? 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 Our python code for that is here: https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/VirtIoChannel.py HTH > > Any hint is welcome . > > Thanks for help. > > > J.P. Ribeauville > > P: +33.(0).1.47.17.20.49 > . > Puteaux 3 Etage 5 Bureau 4 > > jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com> > <mailto:jpribeauvi...@axway.com> > http://www.axway.com <http://www.axway.com/> > > P Pensez ? l?environnement avant d?imprimer. > > > _______________________________________________ > Users mailing list > Users@ovirt.org<mailto:Users@ovirt.org> <mailto:Users@ovirt.org> > http://lists.ovirt.org/mailman/listinfo/users > <http://lists.ovirt.org/mailman/listinfo/users> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.ovirt.org/pipermail/users/attachments/20160115/6d80a2e0/attachment-0001.html> ------------------------------ Message: 2 Date: Fri, 15 Jan 2016 10:53:31 +0100 From: Vinzenz Feenstra <vfeen...@redhat.com<mailto:vfeen...@redhat.com>> To: Jean-Pierre Ribeauville <jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com>> Cc: "users@ovirt.org<mailto:users@ovirt.org>" <users@ovirt.org<mailto:users@ovirt.org>> Subject: Re: [ovirt-users] Scripting Guests migration , shutdown and reboot ( from ovirt) ? Message-ID: <2fabd1e6-4148-452a-b854-7cbd84cf7...@redhat.com<mailto:2fabd1e6-4148-452a-b854-7cbd84cf7...@redhat.com>> Content-Type: text/plain; charset="utf-8" > On Jan 15, 2016, at 9:53 AM, Jean-Pierre Ribeauville > <jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com>> wrote: > > Hi, > > In order to test reliability of some of my softwares running on Guest and > Hosts, I would like to script > from RHEV-M manager host , via command line interface, sequences for > rebooting , migrate and shutdown/run KVM Guests. > > What?s your hint to achieve this ? Well you could use the Python SDK http://www.ovirt.org/Python-sdk > > > 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. > > > Thx for your help. > > Regards, > > J.P. Ribeauville > > P: +33.(0).1.47.17.20.49 > . > Puteaux 3 Etage 5 Bureau 4 > > jpribeauvi...@axway.com<mailto:jpribeauvi...@axway.com> > <mailto:jpribeauvi...@axway.com> > http://www.axway.com <http://www.axway.com/> > > P Pensez ? l?environnement avant d?imprimer. > > > _______________________________________________ > Users mailing list > Users@ovirt.org<mailto:Users@ovirt.org> <mailto:Users@ovirt.org> > http://lists.ovirt.org/mailman/listinfo/users > <http://lists.ovirt.org/mailman/listinfo/users> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.ovirt.org/pipermail/users/attachments/20160115/0c5c03a8/attachment.html> ------------------------------ _______________________________________________ Users mailing list Users@ovirt.org<mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users End of Users Digest, Vol 52, Issue 87 *************************************
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users