[CRIU] test for external mounts

Pavel Emelyanov xemul at parallels.com
Tue Apr 21 04:41:18 PDT 2015


On 04/17/2015 11:34 PM, Tycho Andersen wrote:
> Hi all,
> 
> I'm having a problem getting my test for external sharing to work
> correctly. The patch is attached, and when I run it I get:
> 
> sudo ./zdtm.sh -r ns/static/external_shared_mounts
> Execute ns/static/external_shared_mounts
> mkdir: cannot create directory ‘/tmp/criu-root.utSwRv/dev’: File exists
> mknod: ‘/tmp/criu-root.utSwRv/dev/tty’: File exists
> ./external_shared_mounts --pidfile=external_shared_mounts.pid --outfile=external_shared_mounts.out --dirname=external_shared_mounts.test
> /home/ubuntu/criu/test
> Dump 2644
> Restore
> Test: zdtm/live/static/external_shared_mounts, Result: FAIL
> ==================================== ERROR ====================================
> Test: zdtm/live/static/external_shared_mounts, Namespace: 1
> Dump log   : /home/ubuntu/criu/test/dump/ns/static/external_shared_mounts/2644/1/dump.log
> --------------------------------- grep Error ---------------------------------
> ------------------------------------- END -------------------------------------
> Restore log: /home/ubuntu/criu/test/dump/ns/static/external_shared_mounts/2644/1/restore.log
> --------------------------------- grep Error ---------------------------------
> (00.007393)      1: Error (mount.c:276): Mountpoint 84 w/o parent 83 found @.criu.mntns.aDwkKj/12/ (root found)

The mountpoint 84 from the image doesn't have the parent (83) in the image.
Can you check what's there in the images with mountpoints? The crit decode -i mountpoints-$id.img --pretty does this.

> (00.007844)      1: Error (mount.c:1881): Can't mount at .criu.mntns.aDwkKj/12/zdtm/live/static/external_shared_mounts.test/bind3: No such file or directory
> (00.027555) Error (cr-restore.c:1879): Restoring FAILED.
> ------------------------------------- END -------------------------------------
> ================================= ERROR OVER =================================
> 
> I must be doing something wrong with the test suite, but I can't figure out what.
> 
> Thanks,
> 
> Tycho
> 
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 



More information about the CRIU mailing list