** Description changed:

  ============================================
  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://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  
  with separated /usr partition:
  $ mount | grep /usr
  /dev/mapper/venkman-usr on /usr type ext4 (rw,noatime)
  $ 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,mode=755)
  cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
  cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
  cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
  cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
  cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
  cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
  cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
  cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989354

Title:
  cgroup-lite and separated /usr

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to