cgroup-lite fails to install in container in precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cgroup-lite (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned |
Bug Description
=======
SRU Justification
1. Impact: apt-get install cgroup-lite fails
2. Development fix: /bin/cgroup-mount was changed quite a bit to not fail
3. Stable fix: some of the devel fixes are not appropriate. So instead, just do '/bin/cgroup-mount || { stop; exit 0 } in the upstart job
4. test case:
sudo apt-get -y install lxc
sudo lxc-create -t ubuntu -n p1 -- -r precise
sudo lxc-start -n p1
# log in
sudo apt-get -y install cgroup-lite
# this will fail
5. Regression potential: users may now think that cgroups are available for use (i.e. by lxc) when in fact they are not.
In a stock apparmor-protected container on precise, apt-get install cgroup-lite fails.
This is because it cannot mount cgroups.
Discussion on irc suggests the best fix is to make the cgroup-lite upstart job {stop; exit 0;} if /bin/mount-cgroup fails. That way package install will succeed, but the
upstart job won't be running, which users can detect.
Related branches
description: | updated |
Changed in cgroup-lite (Ubuntu Precise): | |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
This was fixed some time ago in more recent releases, inadvertently by working around the fact that /sys/fs/cgroups/* may have been already mounted by cgroup-bin.