lxc-checkpoint failed on current newest version

Bug #1561434 reported by Wei Tsui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The lxc-checkpoint works well under the following version:

>> Linux Image Version: 4.4.0.12.13
>> CRIU Version: 2.0-2ubuntu1
>> LXC Version: 2.0.0~rc10-0ubuntu2

---------------------------

But failed after ungrading:

>> Linux Image Version: 4.4.0.15.16
>> CRIU Version: 2.0-2ubuntu1
>> LXC Version: 2.0.0~rc12-0ubuntu1

When doing lxc-checkpoint, it replies:

lxc-checkpoint: criu.c: do_dump: 854 dump signaled with 11

Chechpointing xxx failed.

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

Hi,

What version of CRIU are you using? (`dpkg -l | grep criu`) There were some bugs with ubuntu1, so try 2.0-2ubuntu2.

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

Can you please try the updated CRIU?

Revision history for this message
Wei Tsui (ghostplant) wrote :

Just new I tried the updated CRIU:

>> Linux Image Version: 4.4.0.15.16
>> CRIU Version: 2.0-2ubuntu2
>> LXC Version: 2.0.0~rc12-0ubuntu1

The checkpoint step became success, but recovery step failed:

+ lxc-checkpoint -s -D /var/lib/lxc/cr-test/cp -n cr-test

+ lxc-checkpoint -r -D /var/lib/lxc/cr-test/cp -n cr-test
lxc-checkpoint: criu.c: do_restore: 683 criu process exited 1, output:
lxc-checkpoint: criu.c: do_restore: 631 Bad file descriptor - F_GETFD failed

lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/systemd//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/cpu//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/freezer//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/perf_event//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/cpuset//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/pids//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/hugetlb//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/net_cls//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/blkio//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/memory//lxc/cr-test
lxc-checkpoint: cgfsng.c: recursive_destroy: 999 Error destroying /sys/fs/cgroup/devices//lxc/cr-test
lxc-checkpoint: criu.c: restore: 935 restore process died
Restoring cr-test failed.

Revision history for this message
Tycho Andersen (tycho-s) wrote : Re: [Bug 1561434] Re: lxc-checkpoint failed on current newest version

On Thu, Mar 24, 2016 at 06:00:53PM -0000, Cui Wei wrote:
> Just new I tried the updated CRIU:
>
> >> Linux Image Version: 4.4.0.15.16
> >> CRIU Version: 2.0-2ubuntu2
> >> LXC Version: 2.0.0~rc12-0ubuntu1
>
>
> The checkpoint step became success, but recovery step failed:
>
> + lxc-checkpoint -s -D /var/lib/lxc/cr-test/cp -n cr-test
>
> + lxc-checkpoint -r -D /var/lib/lxc/cr-test/cp -n cr-test
> lxc-checkpoint: criu.c: do_restore: 683 criu process exited 1, output:
> lxc-checkpoint: criu.c: do_restore: 631 Bad file descriptor - F_GETFD failed

I believe this is fixed in rc13.

Revision history for this message
Wei Tsui (ghostplant) wrote :

Yes, it's fixed in lxc-rc13.

Changed in lxc (Ubuntu):
status: New → Fix Released
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.