Re: [ovirt-users] What's going on open channel devices when migrating the Guest ?

2016-01-15 Thread Vinzenz Feenstra

> On Jan 15, 2016, at 10:08 AM, Jean-Pierre Ribeauville 
>  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 
> http://www.axway.com 
>  
> P Pensez à l’environnement avant d’imprimer.
>  
>  
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users 
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] What's going on open channel devices when migrating the Guest ?

2016-01-15 Thread Jean-Pierre Ribeauville
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 ?

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
http://www.axway.com



P Pensez à l'environnement avant d'imprimer.



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users