criu doesn't save permissions on all cgroups visible to the container

Bug #1605676 reported by Mark Gavalda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
criu (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

I tried the same live migration that I described in https://bugs.launchpad.net/ubuntu/+source/criu/+bug/1605664 but this time with CRIU 2.4 compiled from source code on both machines, now it failed with the following:

//Sending VM
error: Error transferring container data: migration restore failed
(00.669220) 1: Error (files-reg.c:1509): File sys/fs/cgroup/systemd has bad mode 040755 (expect 040775)
(00.723370) Error (cr-restore.c:991): 28507 exited, status=1
(00.764229) Error (cr-restore.c:1857): Restoring FAILED.

//Receiving VM syslog:
Jul 22 15:37:57 instance-4 lxd[4040]: t=2016-07-22T15:37:57+0000 lvl=eror msg="Error during migration sink" err="migration restore failed\n(00.669220) 1: Error (files-reg.c:1509): File sys/fs/cgroup/systemd has bad mode 040755 (expect 040775)\n(00.723370) Error (cr-restore.c:991): 28507 exited, status=1\n(00.764229) Error (cr-restore.c:1857): Restoring FAILED."

Ubuntu 16.04, CRIU version 2.4

description: updated
Revision history for this message
Tycho Andersen (tycho-s) wrote :

Hi,

Sorry for the delay. As I mentioned here: https://github.com/xemul/criu/issues/210 I've got patches that fix this for CRIU and liblxc, and I'm waiting on comments from upstream.

Revision history for this message
Tycho Andersen (tycho-s) wrote :

The CRIU and liblxc patches have been merged, now we need releases for both :)

summary: - criu 2.4 Error transferring container data: migration restore failed
+ criu doesn't save permissions on all cgroups visible to the container
Changed in criu (Ubuntu):
status: New → Fix Committed
Revision history for this message
Tycho Andersen (tycho-s) wrote :

I believe all the necessary fixes for this are in 2.7 and liblxc 2.0.5; CRIU 2.7 isn't in the archive yet, but hopefully will be soon.

Revision history for this message
Ed McDonagh (ed-mcdonagh) wrote :

Is CRIU going to be updated in xenial? It is still at 2.0 vs 2.6 in yakkety. And by implication is live migration never going to work reliably in xenial without PPAs?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.