cgroup-lite not installable inside 'lxc create -t ubuntu' container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Inside a cgroup created by juju (with 'lxc create -t ubuntu'), libvirt-bin was attempted to be installed.
libvirt-bin depends on cgroup-lite (or cgroup-bin) and cgroup-lite tries to be installed:
# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up cgroup-lite (1.0) ...
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
dpkg: dependency problems prevent configuration of libvirt-bin:
libvirt-bin depends on cgroup-lite | cgroup-bin; however:
Package cgroup-lite is not configured yet.
Package cgroup-bin is not installed.
dpkg: error processing libvirt-bin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
cgroup-lite
libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
# cgroups-mount
mkdir: cannot create directory `/sys/fs/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cgroup-lite 1.0
ProcVersionSign
Uname: Linux 3.2.0-12-virtual x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Tue Jan 31 13:06:20 2012
Dependencies:
Ec2AMI: ami-00000132
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cgroup-lite
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in cgroup-lite (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: rls-mgr-p-tracking |
The apparmor policy needs to be updated - /sys/fs/cgroup should be permitted. (other subdirs of /sys/fs/ should be denied)
(When the mount permissions are here, we'll have a much more detailed policy regarding cgroups.)