[lxc-devel] Broken: lxc/lxc#654 (master - 735f2c6)

Travis CI notifications at travis-ci.org
Tue Aug 26 14:46:48 UTC 2014


Build Update for lxc/lxc
-------------------------------------

Build: #654
Status: Broken

Duration: 3 minutes and 3 seconds
Commit: 735f2c6 (master)
Author: Tycho Andersen
Message: Add support for checkpoint and restore via CRIU

This patch adds support for checkpointing and restoring containers via CRIU.
It adds two api calls, ->checkpoint and ->restore, which are wrappers around
the CRIU CLI. CRIU has an RPC API, but reasons for preferring exec() are
discussed in [1].

To checkpoint, users specify a directory to dump the container metadata (CRIU
dump files, plus some additional information about veth pairs and which
bridges they are attached to) into this directory. On restore, this
information is read out of the directory, a CRIU command line is constructed,
and CRIU is exec()d. CRIU uses the lxc-restore-net callback (which in turn
inspects the image directory with the NIC data) to properly restore the
network.

This will only work with the current git master of CRIU; anything as of
a152c843 should work. There is a known bug where containers which have been
restored cannot be checkpointed [2].

[1]: http://lists.openvz.org/pipermail/criu/2014-July/015117.html
[2]: http://lists.openvz.org/pipermail/criu/2014-August/015876.html

v2: fixed some problems with the s/int/bool return code form api function
v3: added a testcase, fixed up the man page synopsis
v4: fix a small typo in lxc-test-checkpoint-restore
v5: remove a reference to the old CRIU_PATH, and a bad error about the same

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>

View the changeset: https://github.com/lxc/lxc/compare/f4eddfef90c4...735f2c6e504a

View the full build log and details: https://travis-ci.org/lxc/lxc/builds/33596691

--

You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140826/a796aa53/attachment.html>


More information about the lxc-devel mailing list