[Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

Michael H. Warfield mhw at WittsEnd.com
Sun Jun 26 15:52:09 UTC 2011


On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: 
> On 06/26/2011 05:06 PM, Serge E. Hallyn wrote:
> > Quoting Michael H. Warfield (mhw at WittsEnd.com):
> >>> cd /sys/fs/cgroup
> >>>    for d in `/bin/ls`; do
> >>>       echo 1 > $d/cgroup.clone_children
> >>>    done
> >>
> >> Doing this step alone broke lxc totally for me, with or without the
> >> patch below.  This was on Fedora 15 testing with lxc 0.7.4.2 as well as
> > 
> > Do you have the ns cgroup mounted?  The above is only for without
> > ns cgroup.

> Yes, the ns_cgroup and clone_children are mutually exclusive.

> If you try to create a namespace with a ns cgroup mounted and the
> clone_children flag is set. The 'clone' will return EINVAL.

> I noticed with the patch applied because there was a bug in it which was
> setting this flag even if the cgroup was ns.

> It is possible, you ran lxc with the patch, the clone_children was set,
> and then you remove the patch and try to run lxc again. As the
> clone_children is still set, that will make impossible to clone a new
> namespace.

> With the patch I sent previously on top of Serge's patch, that should be
> fixed.

Ok...  Got that an threw it into the mix.

I'm still seeing the segfaults on lxc-info.  Seems to fault even if I
specify the name of a non-existent machine as well.


Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110626/ef0d856e/attachment.pgp>


More information about the lxc-users mailing list