[CRIU] Checkpointing a singularity container
Adrian Reber
adrian at lisas.de
Tue Aug 8 13:27:22 MSK 2017
On Mon, Aug 07, 2017 at 06:33:54PM -0700, Andrei Vagin wrote:
> On Mon, Aug 07, 2017 at 01:15:35PM +0200, Adrian Reber wrote:
> > I just tried to checkpoint a singularity container with busybox and a
> > simple shell loop and it fails.
> >
> > This is how I start the container:
> >
> > mkdir /tmp/test1
> >
> > /home/singularity-root/bin/singularity bootstrap /tmp/test1 examples/busybox/Singularity
> >
> > /home/singularity-root/bin/singularity run -C -B /tmp/share:/test /tmp/test1/
> >
> > criu dump -t 21985 -vvvv
> > [...]
> > (00.001459) Add pid ns 8 pid 21989
> > (00.001475) Error (criu/namespaces.c:431): Can't dump nested ipc namespace for 21989
> > (00.001480) Error (criu/namespaces.c:773): Can't make ipcns id
> > (00.001488) Unlock network
> > (00.001498) Unfreezing tasks into 1
> > (00.001502) Unseizing 21985 into 1
> > (00.001508) Unseizing 21989 into 1
> > (00.001512) Unseizing 22002 into 1
> > (00.001526) Error (criu/cr-dump.c:1800): Dumping FAILED.
>
> Could you show ps axf for target processes and ls -l /proc/pid/ns
> them?
894 ? Ss 0:00 /usr/sbin/sshd
987 ? Ss 0:00 \_ sshd: root at pts/0
999 pts/0 Ss 0:02 \_ -bash
21985 pts/0 S 0:00 \_ /home/singularity-root/libexec/singularity/bin/action-suid
21989 pts/0 S 0:02 | \_ /bin/sh /.singularity.d/runscript
8308 pts/0 S 0:00 | \_ sleep 5
8309 pts/0 R+ 0:00 \_ ps axf
#️ ls -l /proc/21985/ns/
total 0
lrwxrwxrwx 1 root root 0 Aug 7 11:13 ipc -> ipc:[4026531839]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 mnt -> mnt:[4026531840]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 net -> net:[4026531956]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 pid -> pid:[4026531836]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 user -> user:[4026531837]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 uts -> uts:[4026531838]
#️ ls -l /proc/21989/ns/
total 0
lrwxrwxrwx 1 root root 0 Aug 7 11:13 ipc -> ipc:[4026532243]
lrwxrwxrwx 1 root root 0 Aug 8 10:25 mnt -> mnt:[4026532244]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 net -> net:[4026531956]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 pid -> pid:[4026532242]
lrwxrwxrwx 1 root root 0 Aug 7 11:13 user -> user:[4026531837]
lrwxrwxrwx 1 root root 0 Aug 8 10:25 uts -> uts:[4026531838]
Adrian
More information about the CRIU
mailing list