Hm, I found a bug in my last version of this patch. Freshly booted machines 
which had not mounted the cgroupfs had all the hierarchies as 0, causing all 
cgroups to get mounted onto a single directory. I can work around this by 
detecting this scenario.
However, I wonder if I am actually seeing a bug in LXC. On my 12.04 hosts 
spawning 12.04 containers with the nesting.conf include, the cgroupfs gets 
automounted inside the container even without this package. This is not the 
case on 16.04 hosts. I'm currently using LXC 2.0.6.

RE: name=systemd, I had modified an older version of our scripts to
mount name=systemd, because that was how it showed up in
/proc/self/cgroups, but everywhere I see the systemd cgroup mentioned on
the internet has it mounted at /sys/fs/cgroup/systemd, so I guess that's
an implementation detail I just have to deal with.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cgroup-lite in Ubuntu.
https://bugs.launchpad.net/bugs/1668724

Title:
  fails to mount cgroupfs inside containers running on 16.04

Status in cgroup-lite package in Ubuntu:
  Triaged
Status in cgroup-lite source package in Precise:
  New
Status in cgroup-lite source package in Trusty:
  New
Status in cgroup-lite source package in Xenial:
  New
Status in cgroup-lite source package in Yakkety:
  New

Bug description:
  I need to run nested Ubuntu 12.04 and 14.04 containers on 16.04 hosts,
  and have noticed that the cgroups-mount script for mounting the
  cgroups inside the containers has stopped working. This is because
  systemd now comounts multiple controllers on a single hierarchy, which
  prevents mounting them individually inside the container.

  ===========  SRU Justification ================
  Impact: nested containers fail to start
  Reproduce:  create a root owned container;  install lxc and cgroup-lite;  
create a container, and try to start it.  Starting will fail if cgroup-lite is 
running in the first level container without this patch.
  Regression potential:  should be low, it's possible that the regexp is simply 
wrong for some cases.
  ===============================================

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cgroup-lite/+bug/1668724/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to