[CRIU] [PATCH] p_haul_iters: use self.htype.can_migrate_tcp as function

Oscar Fernández oscarfernandz at gmail.com
Tue Apr 22 09:21:08 PDT 2014


2014-04-10 19:08 GMT+02:00 Pavel Emelyanov <xemul at parallels.com>:

> On 04/10/2014 05:52 PM, Andrey Vagin wrote:
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> > ---
> >  p_haul_iters.py | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/p_haul_iters.py b/p_haul_iters.py
> > index c6cbfb0..31a1c74 100644
> > --- a/p_haul_iters.py
> > +++ b/p_haul_iters.py
> > @@ -156,7 +156,7 @@ class phaul_iter_worker:
> >                       req.opts.file_locks = True
> >                       req.opts.evasive_devices = True
> >                       req.opts.link_remap = True
> > -                     if self.htype.can_migrate_tcp:
> > +                     if self.htype.can_migrate_tcp():
> >                               req.opts.tcp_established = True
> >
> >                       cc.send_req(req, False)
> >
>
>
> Ah, I see :) This explains why dump/pre-dump handled TCP successfully.
>
> So, what is left is to resolve the way we want pid driver to live-migrate
> tasks with TCP.
>
> Oscar, can you tell us more about your use-case? What kind of tasks you
> plan to live-migrate with p.haul, so that we could better understand what
> we can do with IP address.
>
> Thanks,
> Pavel
>

Hi, sorry for the delay.
I tried the migration after getting your latest patches and now the dump
fails as expected ;)

Regarding to the use case, the idea is to migrate a streaming server
maintaining the TCP connection.
Find attached 3 pictures representing the process.

Thank you
-- 
Óscar Fernández
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140422/1b890136/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: migration_1.png
Type: image/png
Size: 24188 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140422/1b890136/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: migration_2.png
Type: image/png
Size: 30138 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140422/1b890136/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: migration_3.png
Type: image/png
Size: 39368 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140422/1b890136/attachment-0005.png>


More information about the CRIU mailing list