[CRIU] zdtm ns flavour test for rtc fails for arm64

Andrew Vagin avagin at virtuozzo.com
Tue Dec 29 03:23:43 PST 2015


On Tue, Dec 29, 2015 at 12:09:21PM +0530, Vijay Kilari wrote:
> Hi,
> 
>  zdtm test for rtc passes with below log for host flavour.
> However for ns (namespace) flavour it fails (log below).
> Any idea?

Which version of CRIU do you use?

I fixed this issue by these commits:
https://github.com/xemul/criu/commit/b6d9bcd10d576ca9e5a60be2b8218c35edcd5931
https://github.com/xemul/criu/commit/64744030f29f138d879b46de278f6cf9ea629b9e

FYI: zdtm.sh is deprecated. Now we recomend to use zdtm.py.

For example, if you want to execute all test:
./test/zdtm.py run -a

or if you want to execute only one test
./test/zdtm.py run -t zdtm/live/static/rtc

Now "make test" uses zdtm.py to run tests too:
https://github.com/xemul/criu/commit/cba08fb788f48e3d8e43abb5d24426691b25a57d

Thanks,
Andrew.

> 
> ----------------------------------------------------------
> Test: zdtm/live/static/chroot-file, Result: PASS
> Execute static/rtc
> ./rtc --pidfile=rtc.pid --outfile=rtc.out
> Dump 33673
> Restore
> Check results 33673
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> Waiting...
> 06:16:19.052: 33673: ERR: rtc.c:51: delta = 453242 (errno = 2 (No such
> file or directory))
> 06:16:21.704: 33673: PASS
> Test: zdtm/live/static/rtc, Result: PASS
> 
> ==============================================================================
> Execute ns/static/rtc
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/dev’: File exists
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/dev/pts’: File exists
> mknod: ‘/tmp/criu-root.sG3zM4/dev/tty’: File exists
> mknod: ‘/tmp/criu-root.sG3zM4/dev/null’: File exists
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/dev/net/’: File exists
> mknod: missing operand after ‘0xc8’
> Try 'mknod --help' for more information.
> mknod: missing operand after ‘0x0’
> Try 'mknod --help' for more information.
> mkdir: cannot create directory ‘/tmp/criu-root.sG3zM4/proc’: File exists
> ./rtc --pidfile=rtc.pid --outfile=rtc.out
> The test failed (0, 1)
> Makefile:261: recipe for target 'rtc.pid' failed
> make: *** [rtc.pid] Error 1
> ERROR: fail to start /home/ubuntu/criu/criu-1.8/test/zdtm/live/static/rtc
> Test: zdtm/live/static/rtc, Result: FAIL
> ==================================== ERROR ====================================
> Test: zdtm/live/static/rtc, Namespace: 1
> Output file: /tmp/criu-root.sG3zM4/zdtm/live/static/rtc.out
> ------------------------------------------------------------------------------
> 06:23:00.551:     5: ERR: rtc.c:26: open (errno = 2 (No such file or directory))
> 06:23:00.551:     4: ERR: test.c:195: Test exited unexpectedly with code 1
> The test returned non-zero code 256
>   PID   SID COMMAND
>     1     1 rtc
>     6     1 ps
> waitpid() failed: No child processes
> ------------------------------------- END -------------------------------------
> ================================= ERROR OVER =================================
> 
> Regards
> Vijay
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list