Jim's Depository

this code is not written

I’m not sure where this cropped up, I leaped many kernel versions, but when one of my LXC based virtual machines suddenly was unable to start machines after a kernel upgrade, the error presented like this:

root@cloud8:\~\# lxc-start -n rattus
lxc-start: Invalid argument - failed to create
'/sys/fs/cgroup//lxc/rattus' directory
lxc-start: failed to spawn 'rattus' lxc-start: No such file or directory
- failed to remove cgroup '/sys/fs/cgroup//lxc/rattus'

Further probing revealed that I could mkdir a subdirectory (like lxc in the above example) in my cgroup filesystem, but not a second level subdirectory (like rattus) within the first one.

After a bit of adding printk() calls to the kernel and rebooting, it turned out that the Network Priority cgroup (CONFIG_NETPRIO_CGROUP) was the problem. Turning that off fixed my woes.

Further poking about suggests this check in netprio_cgroup.c is probably to blame, but I don’t understand what prioidx is, so I leave it here.

if (cgrp->parent && cgrp_netprio_state(cgrp->parent)->prioidx) {
    return ERR_PTR(-EINVAL); 
Hey I am so excited I found your wegbape, I really found you by error, while I was searching on Askjeeve for something else, Anyhow I am here now and would just like to say thank you for a marvelous post and a all round thrilling blog (I also love the theme/design), I done28099t have time to go through it all at the moment but I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the awesome work.