lxc-start failure on vivid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc |
New
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Confirmed
|
Critical
|
recep |
Bug Description
When I run the following (after populating the template directory with 2 files) it fails:
sudo lxc-start --daemon --name juju-vivid-
I'm trying to determine if this is an issue in juju or in lxc. The two files are a cloud-init script and lxc.conf. The conf file contains the following:
# network config
# interface "eth0"
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.mtu = 9001
After running the command I find a new container.log with a bunch of logging and an empty console.log (also new). In the container.log file everything looks fine until the following lines right after a bunch of "cgroup" messages:
lxc-start 1426888101.167 ERROR lxc_apparmor - lsm/apparmor.
lxc-start 1426888101.167 ERROR lxc_sync - sync.c:
lxc-start 1426888101.167 ERROR lxc_start - start.c:
This is followed by a bunch of other error messages, but I figured this is the key bit. If necessary I can attach the whole log.
If I run in foreground mode, this is what gets printed out:
lxc-start: lsm/apparmor.c: apparmor_ process_ label_set: 183 No such file or directory - failed to change apparmor profile to lxc-container- default lxc-template' remove_ sync failed: invalid request juju-vivid- lxc-template- 21
lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 4
lxc-start: start.c: __lxc_start: 1157 failed to spawn 'juju-vivid-
lxc-start: cgmanager.c: cgm_remove_cgroup: 518 call to cgmanager_
lxc-start: cgmanager.c: cgm_remove_cgroup: 520 Error removing all:lxc/
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.