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 : [email protected] [mailto:[email protected]] De la part de 
[email protected]
Envoyé : vendredi 15 janvier 2016 10:54
À : [email protected]
Objet : Users Digest, Vol 52, Issue 87

Send Users mailing list submissions to
        [email protected]<mailto:[email protected]>

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
        [email protected]<mailto:[email protected]>

You can reach the person managing the list at
        [email protected]<mailto:[email protected]>

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 <[email protected]<mailto:[email protected]>>
To: Jean-Pierre Ribeauville 
<[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [ovirt-users] What's going on open channel devices when
        migrating the Guest ?
Message-ID: 
<[email protected]<mailto:[email protected]>>
Content-Type: text/plain; charset="utf-8"


> On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville 
> <[email protected]<mailto:[email protected]>> 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
>
> [email protected]<mailto:[email protected]> 
> <mailto:[email protected]>
> http://www.axway.com <http://www.axway.com/>
>
> P Pensez ? l?environnement avant d?imprimer.
>
>
> _______________________________________________
> Users mailing list
> [email protected]<mailto:[email protected]> <mailto:[email protected]>
> 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 <[email protected]<mailto:[email protected]>>
To: Jean-Pierre Ribeauville 
<[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [ovirt-users] Scripting Guests migration , shutdown and
        reboot  ( from ovirt)  ?
Message-ID: 
<[email protected]<mailto:[email protected]>>
Content-Type: text/plain; charset="utf-8"


> On Jan 15, 2016, at 9:53 AM, Jean-Pierre Ribeauville 
> <[email protected]<mailto:[email protected]>> 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
>
> [email protected]<mailto:[email protected]> 
> <mailto:[email protected]>
> http://www.axway.com <http://www.axway.com/>
>
> P Pensez ? l?environnement avant d?imprimer.
>
>
> _______________________________________________
> Users mailing list
> [email protected]<mailto:[email protected]> <mailto:[email protected]>
> 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
[email protected]<mailto:[email protected]>
http://lists.ovirt.org/mailman/listinfo/users


End of Users Digest, Vol 52, Issue 87
*************************************

_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to