--Apple-Mail=_69325062-C30B-463A-AAA3-38735D2FCEEA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville =
<jpribeauville(a)axway.com> wrote:
=20
Hi,
=20
I=E2=80=99m using a channel device between host and guest to exchange =
datas every
20 seconds.
=20
On the Guest size , there is an open /dev/virtio file on which we read =
continuously what=E2=80=99s=20
sent by the host.
=20
My question is the following :=20
When migrating the Guest to another host , and the migrating back to =
the first
one , =20
the Guest software doesn=E2=80=99t receive anymore datas from the
host =
unless I restart the Guest software to re-open the /dev/virtio file.
=20
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=E2=80=99re=
not reopening the unix domain socket - We=E2=80=99re basically on read =
failure just rescheduling the read - That causes no problems after =
migrations - it just continues=20
Our python code for that is here: =
https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/V=
irtIoChannel.py
HTH
=20
Any hint is welcome .
=20
Thanks for help.
=20
=20
J.P. Ribeauville
=20
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
=20
jpribeauville(a)axway.com <mailto:jpribeauville@axway.com>
http://www.axway.com <
http://www.axway.com/>
=20
P Pensez =C3=A0 l=E2=80=99environnement avant d=E2=80=99imprimer.
=20
=20
_______________________________________________
Users mailing list
Users(a)ovirt.org <mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users =
<
http://lists.ovirt.org/mailman/listinfo/users>
--Apple-Mail=_69325062-C30B-463A-AAA3-38735D2FCEEA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote
type=3D"cite" class=3D""><div =
class=3D"">On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville
<<a =
href=3D"mailto:jpribeauville@axway.com" =
class=3D"">jpribeauville(a)axway.com</a>&gt; wrote:</div><br
=
class=3D"Apple-interchange-newline"><div class=3D""><div
=
class=3D"WordSection1" style=3D"page: WordSection1; font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span lang=3D"EN-US"
class=3D"">Hi,<o:p =
class=3D""></o:p></span></div><div style=3D"margin:
0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span
=
lang=3D"EN-US" class=3D""><o:p
class=3D""> </o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span lang=3D"EN-US"
class=3D"">I=E2=80=99=
m using a channel device between host and guest to exchange datas every =
20 seconds.<o:p class=3D""></o:p></span></div><div
style=3D"margin: 0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D""><o:p
=
class=3D""> </o:p></span></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D"">On the
Guest size , there is =
an open /dev/virtio file on which we read continuously what=E2=80=99s<span=
class=3D"Apple-converted-space"> </span><br
class=3D"">sent by the =
host.<o:p class=3D""></o:p></span></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D""><o:p
=
class=3D""> </o:p></span></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D"">My
question is the following =
:<span class=3D"Apple-converted-space"> </span><o:p =
class=3D""></o:p></span></div><div style=3D"margin:
0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span
=
lang=3D"EN-US" class=3D"">When migrating the Guest to another host
=
, and the migrating back to the first one , <span =
class=3D"Apple-converted-space"> </span><br
class=3D"">the Guest =
software doesn=E2=80=99t receive anymore datas from the host unless I =
restart the Guest software to re-open the /dev/virtio file.<o:p =
class=3D""></o:p></span></div><div style=3D"margin:
0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span
=
lang=3D"EN-US" class=3D""><o:p
class=3D""> </o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span lang=3D"EN-US"
class=3D"">Is =
there any way to detect in the Guest that migration has been done so we =
have to reopen the file =
?</span></div></div></div></blockquote><div><br
class=3D""></div><div>Well=
you can look how we do it in the ovirt-guest-agent. But we=E2=80=99re =
not reopening the unix domain socket - We=E2=80=99re basically on read =
failure just rescheduling the read - That causes no problems after =
migrations - it just continues </div><div><br =
class=3D""></div><div>Our python code for that is
here: <a =
href=3D"https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt...
-agent/VirtIoChannel.py" =
class=3D"">https://github.com/oVirt/ovirt-guest-agent/blob/m...
est-agent/VirtIoChannel.py</a></div><div><br =
class=3D""></div><div>HTH</div><br
class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div
class=3D"WordSection1" style=3D"page: =
WordSection1; font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;"><div style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D""><o:p
=
class=3D""></o:p></span></div><div style=3D"margin:
0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span
=
lang=3D"EN-US" class=3D""><o:p
class=3D""> </o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span lang=3D"EN-US"
class=3D"">Any =
hint is welcome .<o:p
class=3D""></o:p></span></div><div style=3D"margin:
=
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D""><o:p
=
class=3D""> </o:p></span></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" class=3D"">Thanks
for help.<o:p =
class=3D""></o:p></span></div><div style=3D"margin:
0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span
=
lang=3D"EN-US" class=3D""><o:p
class=3D""> </o:p></span></div><table =
class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" =
cellpadding=3D"0"><tbody class=3D""><tr
class=3D""><td valign=3D"top" =
style=3D"padding: 0cm 4.5pt 0cm 0cm;" class=3D""><div
style=3D"margin: =
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><b class=3D""><span lang=3D"EN-US"
style=3D"font-size: 9pt; =
font-family: Arial, sans-serif; color: rgb(136, 136, 136);" =
class=3D""><o:p
class=3D""> </o:p></span></b></div><div
=
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><b class=3D""><span
lang=3D"EN-US" =
style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: =
rgb(136, 136, 136);" class=3D"">J.P. Ribeauville<o:p =
class=3D""></o:p></span></b></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span lang=3D"EN-US" style=3D"font-size: 8.5pt;
font-family: =
Arial, sans-serif; color: rgb(115, 115, 115);" class=3D""><o:p =
class=3D""> </o:p></span></div></td></tr><tr
class=3D""><td =
style=3D"padding: 2.25pt 4.5pt 4.5pt 0cm;" class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span style=3D"font-size:
8.5pt; =
font-family: Arial, sans-serif; color: red;" class=3D"">P:<span =
class=3D"Apple-converted-space"> </span></span><span
=
style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: =
rgb(115, 115, 115);"
class=3D"">+33.(0).1.47.17.20.49</span><span =
style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: =
rgb(115, 115, 115);" class=3D""><o:p
class=3D""></o:p></span></div><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span style=3D"font-size:
8.5pt; =
font-family: Arial, sans-serif; color: rgb(115, 115, 115);" =
class=3D"">.<o:p
class=3D""></o:p></span></div><div style=3D"margin:
0cm =
0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span style=3D"font-size: 8.5pt; font-family: Arial, =
sans-serif; color: rgb(115, 115, 115);" class=3D"">Puteaux 3 Etage =
5 Bureau 4<o:p
class=3D""></o:p></span></div><div style=3D"margin:
=
0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><span style=3D"font-size: 8.5pt; font-family: Arial, =
sans-serif; color: rgb(115, 115, 115);" class=3D""><o:p =
class=3D""> </o:p></span></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><u class=3D""><span lang=3D"EN-US"
style=3D"font-size: 9pt; =
color: red;" class=3D""><a
href=3D"mailto:jpribeauville@axway.com" =
style=3D"color: purple; text-decoration: underline;"
class=3D""><span =
lang=3D"FR" style=3D"color: blue;" =
class=3D"">jpribeauville(a)axway.com</span></a></span></u><u
=
class=3D""><span style=3D"font-size: 9pt; color: red;"
class=3D""><br =
class=3D""></span></u><span style=3D"font-size: 9pt;
color: red;" =
class=3D""><a
href=3D"http://www.axway.com/"
style=3D"color: purple; =
text-decoration: underline;" class=3D""><span style=3D"color:
red;" =
class=3D"">http://www.axway.com</span></a><o:p =
class=3D""></o:p></span></div><div style=3D"margin:
0cm 0cm 0.0001pt; =
font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span
=
style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: =
rgb(115, 115, 115);" class=3D""><o:p =
class=3D""> </o:p></span></div></td></tr></tbody></table><p
=
class=3D"MsoNormal" style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; =
font-family: Calibri, sans-serif;"></p><table
class=3D"MsoNormalTable" =
border=3D"0" cellspacing=3D"0"
cellpadding=3D"0"><tbody class=3D""><tr =
class=3D""><td style=3D"padding: 4.5pt 4.5pt 4.5pt 0cm;"
class=3D""><div =
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span style=3D"font-size: 18pt;
=
font-family: Webdings; color: rgb(136, 136, 136);" =
class=3D"">P</span><span style=3D"font-size: 8pt; font-family:
Arial, =
sans-serif; color: rgb(136, 136, 136);" class=3D""> Pensez
=C3=A0 =
l=E2=80=99environnement avant d=E2=80=99imprimer.</span><span =
style=3D"font-size: 8pt; font-family: Arial, sans-serif; color: rgb(136, =
136, 136);" class=3D""><o:p =
class=3D""></o:p></span></div></td></tr></tbody></table><div
=
style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: =
Calibri, sans-serif;" class=3D""><span
class=3D""><o:p =
class=3D""> </o:p></span></div><div
style=3D"margin: 0cm 0cm =
0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" =
class=3D""><o:p
class=3D""> </o:p></div></div><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" =
class=3D"">_______________________________________________</span><br
=
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span
style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: =
none; display: inline !important;" class=3D"">Users mailing =
list</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a =
href=3D"mailto:Users@ovirt.org" style=3D"color: purple; text-decoration: =
underline; font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"
class=3D"">Users(a)ovirt.org</a><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><a =
href=3D"http://lists.ovirt.org/mailman/listinfo/users" style=3D"color: =
purple; text-decoration: underline; font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D"">http://lists.ovirt.org/mailman/listinfo/users<...
uote></div><br class=3D""></body></html>=
--Apple-Mail=_69325062-C30B-463A-AAA3-38735D2FCEEA--