[Bug 1340836] [NEW] [juju/lxc] juju local deploy on kvm machine using lxc failed with error: error executing "lxc-start"
Manoj Iyer
1340836 at bugs.launchpad.net
Fri Jul 11 16:37:10 UTC 2014
Public bug reported:
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/interfaces.d/eth0.cfg
sudo vi /etc/network/interfaces.d/lxcbr0.cfg
-------------- 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-local-machine-2
series: trusty
containers:
2/lxc/0:
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-priorit
y
options.)'
instance-id: pending
series: trusty
hardware: arch=amd64
services:
mysql:
charm: cs:trusty/mysql-1
exposed: false
relations:
cluster:
- mysql
units:
mysql/0:
agent-state: pending
machine: 2/lxc/0
ubuntu at ubuntu-local-machine-2:~$ sudo lxc-ls --stopped
juju-machine-2-lxc-0
ubuntu at ubuntu-local-machine-2:~$
ubuntu at ubuntu-local-machine-2:~$ sudo lxc-start -n juju-machine-2-lxc-0
lxc-start: cgroupfs failed to detect cgroup metadata
lxc-start: failed initializing cgroup support
lxc-start: failed to spawn 'juju-machine-2-lxc-0'
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --log-priority options.
ubuntu at ubuntu-local-machine-2:~$
** Affects: juju-core
Importance: Undecided
Status: New
** Affects: lxc
Importance: Undecided
Status: New
** Affects: juju-core (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju-core in Ubuntu.
https://bugs.launchpad.net/bugs/1340836
Title:
[juju/lxc] juju local deploy on kvm machine using lxc failed with
error: error executing "lxc-start"
To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1340836/+subscriptions
More information about the Ubuntu-server-bugs
mailing list