--_000_1051EFB4D3A1704680C38CCAAC5836D292F0290CWPTXMAIL2ptxaxw_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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-bounces(a)ovirt.org [mailto:users-bounces@ovirt.org] De la part de=
users-request(a)ovirt.org
Envoy=E9 : vendredi 15 janvier 2016 10:54
=C0 : users(a)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-request@ovirt.org<mailto:users-request@ovirt.org>
You can reach the person managing the list at
users-owner@ovirt.org<mailto:users-owner@ovirt.org>
When replying, please edit your Subject line so it is more specific than "R=
e: 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 <vfeenstr@redhat.com<mailto:vfeenstr@redhat.com>>
To: Jean-Pierre Ribeauville <jpribeauville@axway.com<mailto:jpribeauville@a=
xway.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-97118A1325B4@redhat.com<mailto:90F5CE3=
0-927A-48A3-AC82-97118A1325B4(a)redhat.com>>
Content-Type: text/plain; charset=3D"utf-8"
On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville
<jpribeauville@axwa=
y.com<mailto:jpribeauville@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 w=
e have
to reopen the file ?
Well you can look how we do it in the ovirt-guest-agent. But we?re not reop=
ening the unix domain socket - We?re basically on read failure just resched=
uling the read - That causes no problems after migrations - it just continu=
es
Our python code for that is here:
https://github.com/oVirt/ovirt-guest-agen=
t/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
jpribeauville@axway.com<mailto:jpribeauville@axway.com> <mailto:jpribeauv=
ille(a)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>