[CRIU] c/r support for cgroup namespaces

Pavel Emelyanov xemul at virtuozzo.com
Mon Feb 15 08:56:09 PST 2016


On 02/11/2016 08:37 PM, Tycho Andersen wrote:
> Hi guys,
> 
> Here's a draft set for supporting cgroup namespaces. The one obvious nit I can
> think of is in include/namespaces.h, although there are probably others. I
> haven't done extenstive testing on this, but I'm hoping to bang on it more next
> week.
> 
> Also, when running the test in a user ns, I get what I think is an unrelated
> network failure due to the way 4.4 does things, but I haven't looked into it
> yet. If anyone has any ideas about this that would be great, but I'll take a
> look now.

Before looking into patches, I have something to say about why test fail :) See below

> $ sudo ./zdtm.py run -t zdtm/live/static/cgroupns
> Checking feature cgroupns
> === Run 1/1 ================
> 
> ====================== Run zdtm/live/static/cgroupns in h ======================
> Start test
> Test is SUID
> ./cgroupns --pidfile=cgroupns.pid --outfile=cgroupns.out --dirname=cgroupns.test
> Run criu dump
> Run criu restore
> Wait for zdtm/live/static/cgroupns to die for 0.100000
> Removing dump/zdtm/live/static/cgroupns/62
> ===================== Test zdtm/live/static/cgroupns PASS ======================
> 
> ===================== Run zdtm/live/static/cgroupns in ns ======================
> Start test
> Test is SUID
> ./cgroupns --pidfile=cgroupns.pid --outfile=cgroupns.out --dirname=cgroupns.test
> Run criu dump
> =[log]=> dump/zdtm/live/static/cgroupns/130/1/dump.log
> ------------------------ grep Error ------------------------
> (00.015021) Error (net.c:228): Unsupported link 2 (type 776 kind sit)

That's IPv6 over IPv4 tunnel a.k.a. SIT device

https://github.com/xemul/criu/issues/11

> (00.018762) Error (namespaces.c:829): Namespaces dumping finished with error 65280
> (00.021230) Error (cr-dump.c:1580): Dumping FAILED.
> ------------------------ ERROR OVER ------------------------
> ############### Test zdtm/live/static/cgroupns FAIL at CRIU dump ###############
> Wait for zdtm/live/static/cgroupns to die for 0.100000
> ##################################### FAIL #####################################
> 
> Thoughts welcome!
> 
> Tycho
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> .
> 



More information about the CRIU mailing list