[ovirt-users] Users Digest, Vol 52, Issue 87 What's going on open channel devices when migrating ...

Jean-Pierre Ribeauville jpribeauville at axway.com
Fri Jan 15 11:26:00 UTC 2016


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 at ovirt.org [mailto:users-bounces at ovirt.org] De la part de users-request at ovirt.org
Envoyé : vendredi 15 janvier 2016 10:54
À : users at ovirt.org
Objet : Users Digest, Vol 52, Issue 87

Send Users mailing list submissions to
        users at ovirt.org<mailto:users at 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 at ovirt.org<mailto:users-request at ovirt.org>

You can reach the person managing the list at
        users-owner at ovirt.org<mailto:users-owner at 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 <vfeenstr at redhat.com<mailto:vfeenstr at redhat.com>>
To: Jean-Pierre Ribeauville <jpribeauville at axway.com<mailto:jpribeauville at axway.com>>
Cc: "users at ovirt.org<mailto:users at ovirt.org>" <users at ovirt.org<mailto:users at ovirt.org>>
Subject: Re: [ovirt-users] What's going on open channel devices when
        migrating the Guest ?
Message-ID: <90F5CE30-927A-48A3-AC82-97118A1325B4 at redhat.com<mailto:90F5CE30-927A-48A3-AC82-97118A1325B4 at redhat.com>>
Content-Type: text/plain; charset="utf-8"


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


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


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160115/20000bd3/attachment-0001.html>


More information about the Users mailing list