[CRIU] [PATCH 0/14 RFC] Introduce library for socket C/R
Andrew Vagin
avagin at virtuozzo.com
Tue Apr 19 15:12:35 PDT 2016
On Mon, Apr 18, 2016 at 04:01:44PM +0300, Pavel Emelyanov wrote:
> Hi,
>
> In CRIU we use the TCP repair feature to live migrate TCP connection,
> but this feature cannot be used w/o CRIU. So here's the libsoccr library
> that makes an attempt to make this feature use-able in another projects.
>
> The idea of the libsoccr usage is
>
> 1) pause the socket
> 2) get the connection info
> 3) get other socket parameters (address, peer, ports, options)
>
> to dump the socket and
>
> 1) create and pause the socket
> 2) restore socket's connection info (part 1)
> 3) restore socket's name and peer (bind and connect)
> 4) restore socket's connection into (part 2)
> 5) resume the socket
>
> for restore. So the libsoccr handles steps 1 and 2 on dump and 1, 2, 4 and 5
> on restore. Stuff like address, peer and others are left for caller for
> simplicity, but, probably, these can be implemented as wrappers in libsoccr.
https://travis-ci.org/avagin/criu/jobs/124323080
======================== Run zdtm/transition/fork2 in h ========================
Start test
./fork2 --pidfile=fork2.pid --outfile=fork2.out
Run criu dump
../criu/criu: error while loading shared libraries: libsoccr.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "zdtm.py", line 1462, in <module>
do_run_test(tinfo[0], tinfo[1], tinfo[2], tinfo[3])
File "zdtm.py", line 986, in do_run_test
cr(cr_api, t, opts)
File "zdtm.py", line 824, in cr
cr_api.dump("dump")
File "zdtm.py", line 736, in dump
self.__criu_act(action, opts = a_opts + opts)
File "zdtm.py", line 683, in __criu_act
grep_errors(os.path.join(__ddir, log))
File "zdtm.py", line 1183, in grep_errors
for l in open(fname):
IOError: [Errno 2] No such file or directory: 'dump/zdtm/transition/fork2/26/1/dump.log'
##################################### FAIL #####################################
>
> Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list