cgroup-lite and separated /usr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cgroup-lite (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Critical
|
Unassigned |
Bug Description
=======
SRU Justification:
1. Impact: cgroup-lite fails to start on systems with separate /usr
2. Development fix: move cgroup-{,u}mount commands to /bin
3. Stable fix: same as development fix
4. Test case:
1. install cgroup-lite and lxc
2. start a shell with /usr over-mounted
2a. sudo lxc-unshare -s MOUNT /bin/bash
2b. mount -t tmpfs tmpfs /usr
2c. /bin/cgroup-umount # look for errors
2d. look under /sys/fs/cgroup - cgroups should be mounted
2e. /bin/cgroup-mount # look for errors
2f. look under /sys/fs/cgroup - cgroups should be mounted
# (note, if you do 'start cgroup-lite from the private mounts namespace, the mounts will only be seen in the host's (upstart's) namespace, not your private namespace)
5. Regression potential: If done wrong, it could cause cgroup-lite to fail
to start or stop.
=======
the initscript provided by cgroup-lite 1.1 doesn't work when /usr is on separated partition.
$ sudo lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
$ apt-cache policy cgroup-lite
cgroup-lite:
Installed: 1.1
Candidate: 1.1
Version table:
*** 1.1 0
500 http://
100 /var/lib/
with separated /usr partition:
$ mount | grep /usr
/dev/mapper/
$ sudo service cgroup-lite status
cgroup-lite stop/waiting
$ mount | grep cgroup
with not separated /usr partition:
$ mount | grep /usr
$ sudo service cgroup-lite status
cgroup-lite start/running
$ mount | grep cgroup
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,
cgroup on /sys/fs/
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/
Changed in cgroup-lite (Ubuntu): | |
importance: | Undecided → Critical |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.