error: error executing "lxc-start" when juju client runs inside kvm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Low
|
Unassigned | ||
juju-core (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Deploying a (mysql) service on a KVM instance using juju local lxc fails in lxc-start.
agent-state-info: '(error: error executing "lxc-start": The container fa
iled to start.; To get more details, run the container in foreground mode.;
Additional information can be obtained by setting the --logfile and --log-priority options.)'
Here are the steps to reproduce:
* juju switch local
* juju bootstrap
* juju set-constraints mem=2G
* juju add-machine
* (OPTIONAL) ssh to machine and modify network setting, this is because we want to keep the ip address of the service the same as the ip that was assigned to the kvm instance. You can skip this part and you will see the same failure.
* juju ssh 2
sudo rm /etc/network/
sudo vi /etc/network/
-------------- lxcbr0.cfg -------------------
auto eth0
iface eth0 inet manual
auto lxcbr0
iface lxcbr0 inet dhcp
bridge_ports eth0
-------
* juju deploy mysql --lxc:2
environment: local
machines:
"0":
agent-state: started
agent-version: 1.18.1.1
dns-name: localhost
instance-id: localhost
series: trusty
"2":
agent-state: started
agent-version: 1.18.1.1
dns-name: 10.0.3.247
instance-id: ubuntu-
series: trusty
containers:
2/lxc/0:
iled
to start.; To get more details, run the container in foreground mode.;
Additional
y
series: trusty
hardware: arch=amd64
services:
mysql:
charm: cs:trusty/mysql-1
exposed: false
relations:
cluster:
- mysql
units:
mysql/0:
machine: 2/lxc/0
ubuntu@
juju-machine-
ubuntu@
ubuntu@
lxc-start: cgroupfs failed to detect cgroup metadata
lxc-start: failed initializing cgroup support
lxc-start: failed to spawn 'juju-machine-
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --log-priority options.
ubuntu@
Changed in lxc: | |
status: | New → Confirmed |
summary: |
- [juju/lxc] juju local deploy on kvm machine using lxc failed with error: - error executing "lxc-start" + error: error executing "lxc-start" when juju client runs inside kvm |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: local-provider lvm lxc |
no longer affects: | lxc |
Changed in juju-core: | |
importance: | Medium → Low |
Changed in juju-core: | |
status: | Triaged → Won't Fix |
ubuntu@ ubuntu- local-machine- 2:~$ cat /var/log/ lxc/juju- machine- 2-lxc-0. log 2-lxc-0' lxc/juju- machine- 2-lxc-0/ config 2-lxc-0' is initialized vethNEM4PX' , index is '7' 2-lxc-0 2-lxc-0' ubuntu- local-machine- 2:~$
lxc-start 1405096303.317 ERROR lxc_cgfs - cgroupfs failed to detect cgroup metadata
lxc-start 1405096303.317 ERROR lxc_start - failed initializing cgroup support
lxc-start 1405096303.339 ERROR lxc_start - failed to spawn 'juju-machine-
lxc-start 1405096303.339 ERROR lxc_start_ui - The container failed to start.
lxc-start 1405096303.339 ERROR lxc_start_ui - Additional information can be obtained by setting the --logfile and --log-priority options.
lxc-start 1405096708.183 INFO lxc_start_ui - using rcfile /var/lib/
lxc-start 1405096708.184 WARN lxc_log - lxc_log_init called with log already initialized
lxc-start 1405096708.184 INFO lxc_lsm - LSM security driver AppArmor
lxc-start 1405096708.184 DEBUG lxc_conf - allocated pty '/dev/pts/2' (5/6)
lxc-start 1405096708.184 DEBUG lxc_conf - allocated pty '/dev/pts/3' (7/8)
lxc-start 1405096708.184 DEBUG lxc_conf - allocated pty '/dev/pts/4' (9/10)
lxc-start 1405096708.184 DEBUG lxc_conf - allocated pty '/dev/pts/5' (11/12)
lxc-start 1405096708.184 INFO lxc_conf - tty's configured
lxc-start 1405096708.184 DEBUG lxc_start - sigchild handler set
lxc-start 1405096708.184 DEBUG lxc_console - opening /dev/tty for console peer
lxc-start 1405096708.184 DEBUG lxc_console - using '/dev/tty' as console
lxc-start 1405096708.184 DEBUG lxc_console - 3426 got SIGWINCH fd 17
lxc-start 1405096708.185 DEBUG lxc_console - set winsz dstfd:14 cols:80 rows:55
lxc-start 1405096708.185 INFO lxc_start - 'juju-machine-
lxc-start 1405096708.195 DEBUG lxc_start - Not dropping cap_sys_boot or watching utmp
lxc-start 1405096708.197 DEBUG lxc_conf - instanciated veth 'vethDP2WB6/
lxc-start 1405096708.197 INFO lxc_cgroup - cgroup driver cgroupfs initing for juju-machine-
lxc-start 1405096708.197 ERROR lxc_cgfs - cgroupfs failed to detect cgroup metadata
lxc-start 1405096708.197 ERROR lxc_start - failed initializing cgroup support
lxc-start 1405096708.219 ERROR lxc_start - failed to spawn 'juju-machine-
lxc-start 1405096708.219 ERROR lxc_start_ui - The container failed to start.
lxc-start 1405096708.219 ERROR lxc_start_ui - Additional information can be obtained by setting the --logfile and --log-priority options.
ubuntu@