[lxc-devel] Failed to remove cgroup when lxc-start failed

Michael Tokarev mjt at tls.msk.ru
Sat May 25 04:04:56 UTC 2013


25.05.2013 04:34, Qiang Huang wrote:
> On 2013/5/24 20:49, Serge Hallyn wrote:
>>
>> Could you tell us exactly which version this is, and exactly how you
>> created the container?  When I do it in ubuntu saucy (roughly 0.9.0 lxc),
>> the cgroup gets correctly removed.

The same issue has biten me so many times that I dpkg-divert'ed
lxc-stop to be a shell script that first cals lxc-stop.real,
and next rmdir /sys/fs/cgroup/lxc/$container.  It happened
again a few days ago with 0.9 version (from debian wheezy)
on another machine which I just installed and forgot to
replace lxc-stop with a script.

Places where/when it may happen are numerous, sometimes it
happens at start when something goes wrong (say, it weren't
able to create network device with cryptic message telling
me that veth.123xyz789abc already exist), sometimes it
happens at stop, but end result is the same -- no proper
cleanup and no way to start it after that.

As you may be aware, in the past I tried to clean some
things in the code and implement something else, but I
mostly gave up as the whole thing is wrong in so many
ways it maybe worthless to try to fix it.  Things are
definitely improved alot since that, so maybe it's
worth the effort to take another look...

Thanks,

/mjt




More information about the lxc-devel mailing list