lxc-start: Error creating cgroups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Critical
|
Serge Hallyn | ||
Raring |
Fix Released
|
Critical
|
Unassigned | ||
Saucy |
Fix Released
|
Critical
|
Serge Hallyn |
Bug Description
=========== SRU Justification ===========
1. Impact: users who have cgroups mounted in more than one place will hang thier
system when starting an lxc container
2. Development fix: check for duplicate cgroup mounts
3. Stable fix: same as development fix
4. Test case:
sudo apt-get install lxc
sudo lxc-create -t ubuntu -n r1
sudo mkdir /var/cgroups
for d in `sed -e '1d;s/\
sudo mkdir -p /var/cgroups/$d
sudo mount -t cgroup -o $d cgroup /var/cgroups/$d
done
sudo lxc-start -n r1
If the lxc-start does not hang, the bug is not present.
5. Regression potential:
=========== SRU Justification ===========
I've played around with steam-lxc, but the container fails to start. Some debugging reveals:
>> sudo lxc-start -l DEBUG --name siretart-steam
lxc-start: Error creating cgroups
lxc-start: failed to spawn 'siretart-steam'
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: lxc 0.9.0-0ubuntu3
ProcVersionSign
Uname: Linux 3.8.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Sat May 4 08:47:37 2013
InstallationDate: Installed on 2011-04-21 (743 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MarkForUpload: True
SourcePackage: lxc
UpgradeStatus: Upgraded to raring on 2013-04-24 (9 days ago)
Changed in lxc (Ubuntu Raring): | |
importance: | Undecided → Critical |
status: | New → In Progress |
description: | updated |
From: /var/log/ lxc/siretart- steam.log
lxc-start 1367650042.758 INFO lxc_start_ui - using rcfile /var/lib/ lxc/siretart- steam/config
lxc-start 1367650042.758 INFO lxc_apparmor - aa_enabled set to 1
lxc-start 1367650042.758 DEBUG lxc_start - sigchild handler set
lxc-start 1367650042.758 INFO lxc_start - 'siretart-steam' is initialized
lxc-start 1367650042.795 DEBUG lxc_start - Not dropping cap_sys_boot or watching utmp
lxc-start 1367650042.796 DEBUG lxc_conf - mac address of host interface 'veth4gEyxz' changed to private fe:fe:c5:7b:d3:72 vethieShz2' , index is '20'
lxc-start 1367650042.796 DEBUG lxc_conf - instanciated veth 'veth4gEyxz/
lxc-start 1367650046.208 ERROR lxc_cgroup - Error creating cgroups
lxc-start 1367650046.298 ERROR lxc_start - failed to spawn 'siretart-steam'