** Description changed:

+ ============================================
+ SRU Justification:
+ 1. Impact: Customized installations which mount cgroups in nonstandard
+ locations may cause cgroup-lite to fail to start correctly
+ 2. Development fix: have cgroup-lite do nothing if cgroups are found mounted
+ anywhere at all
+ 3. Stable fix: same as development fix.
+ 4. Test case:
+    Create an upstart job:
+    {{{
+    start on starting cgroup-lite
+    pre-start script
+      mkdir -p /mnt2
+      mount -t cgroup -o freezer freezer /mnt2
+    end script
+    }}}
+    reboot and check whether cgroup-lite is working.  Manually try
+    {{{
+    stop cgroup-lite; start cgroup-lite
+    }}}
+    and check for errors
+ 5. Regression potential: If a system has a mount with 'cgroup' in the
+ name which is not a cgroup mount, cgroup-lite will no longer mount cgroups.
+ 
+ ============================================
+ 
  Similar symptom to https://bugs.launchpad.net/ubuntu/+source/cgroup-
  lite/+bug/929381, but obviously a different issue:
  
  $ sudo apt-get install cgroup-lite
  Reading package lists... Done
- Building dependency tree       
+ Building dependency tree
  Reading state information... Done
  The following NEW packages will be installed:
-   cgroup-lite
+   cgroup-lite
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0 B/3,490 B of archives.
  After this operation, 46.1 kB of additional disk space will be used.
  Selecting previously unselected package cgroup-lite.
  (Reading database ... 241656 files and directories currently installed.)
  Unpacking cgroup-lite (from .../cgroup-lite_1.1_all.deb) ...
  Processing triggers for ureadahead ...
  Setting up cgroup-lite (1.1) ...
  start: Job failed to start
  invoke-rc.d: initscript cgroup-lite, action "start" failed.
  dpkg: error processing cgroup-lite (--configure):
-  subprocess installed post-installation script returned error exit status 1
+  subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
-  cgroup-lite
+  cgroup-lite
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  
  $ sudo start cgroup-lite
  start: Job failed to start
  
  $ ls -ld /usr/bin/cgroups-mount
  -rwxr-xr-x 1 root root 850 Feb  9 00:56 /usr/bin/cgroups-mount
  
  $ ls -ld /sys/fs/cgroup
  drwxr-xr-x 2 root root 0 Apr 19 13:37 /sys/fs/cgroup
  
  $ sudo /usr/bin/cgroups-mount
  mount: cgroup already mounted or /sys/fs/cgroup/cpu busy
  mount: according to mtab, cgroup is mounted on /sys/fs/cgroup
  
  $ echo $?
  32
  
  $ mount | grep cgroup
  none on /dev/cgroup/cpu type cgroup (rw,cpu,cpuacct)
  none on /dev/cgroup/devices type cgroup (rw,devices)
  cgroup on /sys/fs/cgroup type tmpfs (rw,uid=0,gid=0,mode=0755)
  
  $ sudo /usr/bin/cgroups-umount
  umount: cpu: not mounted
  umount: cpuacct: not found
  umount: memory: not found
  umount: devices: not found
  umount: freezer: not found
  umount: net_cls: not found
  umount: perf_event: not found
  
  $ mount | grep cgroup
  none on /dev/cgroup/cpu type cgroup (rw,cpu,cpuacct)
  none on /dev/cgroup/devices type cgroup (rw,devices)
  
  $ sudo /usr/bin/cgroups-mount
  mount: cgroup already mounted or /sys/fs/cgroup/cpu busy
  mount: according to mtab, cgroup is mounted on /sys/fs/cgroup
  
  $ echo $?
  32

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

Title:
  cgroup lite postinst fails (init script doesn't start)

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

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

Reply via email to