[CRIU] [PATCH v4 5/5] zdtm: add loginuid restore test

Pavel Emelyanov xemul at parallels.com
Wed Dec 16 08:46:29 PST 2015


On 12/16/2015 07:32 PM, Dmitry Safonov wrote:
> On 12/16/2015 06:52 PM, Pavel Emelyanov wrote:
>> And this one also fails.
>>
>> ================== Run zdtm/live/static/unlink_mmap01 in uns ===================
>> Start test
>> ./unlink_mmap01 --pidfile=unlink_mmap01.pid --outfile=unlink_mmap01.out --filename=unlink_mmap01.test
>> Run criu dump
>> Run criu restore
>> =[log]=> dump/zdtm/live/static/unlink_mmap01/256/1/restore.log
>> ------------------------ grep Error ------------------------
>> (00.317624)      4: Error (cr-restore.c:869): Can't open 4/loginuid on procfs: Permission denied
>> (00.324317) Error (cr-restore.c:1323): 276 exited, status=1
>> (00.324399) Error (files-reg.c:445):  `- XFail [/zdtm/live/static/unlink_mmap01.test.lnk.cr.1.ghost] ghost: No such file or directory
>> (00.330545) Error (cr-restore.c:2106): Restoring FAILED.
>> ------------------------ ERROR OVER ------------------------
>> ########### Test zdtm/live/static/unlink_mmap01 FAIL at CRIU restore ###########
> I'm not sure how the test launchs but with `make -C 
> test/zdtm/live/static loginuid.pid`
> this test works  with non-root:
> 
>> [user at localhost criu-user]$ make -C test/zdtm/live/static loginuid.pid

That's launch in host environment. Try this

zdtm.py run -t zdtm/live/static/unlink_mmap01 -f uns

it will put the test into user-namespace context (and a little bit more)

>> make: Entering directory `/root/criu-user/test/zdtm/live/static'
>> make[1]: Entering directory `/root/criu-user/test/zdtm/lib'
>> make[1]: Leaving directory `/root/criu-user/test/zdtm/lib'
>> ./loginuid --pidfile=loginuid.pid --outfile=loginuid.out
>> make: Leaving directory `/root/criu-user/test/zdtm/live/static'
>> [user at localhost criu-user]$ make -C test/zdtm/live/static loginuid.out
>> make: Entering directory `/root/criu-user/test/zdtm/live/static'
>> make[1]: Entering directory `/root/criu-user/test/zdtm/lib'
>> make[1]: Leaving directory `/root/criu-user/test/zdtm/lib'
>> kill -TERM `cat loginuid.pid`
>> make: Leaving directory `/root/criu-user/test/zdtm/live/static'
>> [user at localhost criu-user]$ cat test/zdtm/live/static/loginuid.out
>> 19:24:52.058: 22447: PASS
>> [user at localhost criu-user]$ uname -a
>> Linux localhost.localdomain 
>> 3.10.0-229.7.2.ovz.9.17-00001-gdc5b677-dirty #13 SMP Wed Dec 16 
>> 16:51:54 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> So what differs to Jenkins configuration?
> 



More information about the CRIU mailing list