LXC containers fail to start on trusty hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Undecided
|
Unassigned | ||
lxc |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
We've recently destroyed our old precise environment and am trying to bring up the same environment with trusty. We're seeing issues with service units that we're trying to bring up in LXC containers. The non-LXC service units are fine.
Snippet from 'juju status':
| "5":
| agent-state: started
| agent-version: 1.18.1.1
| dns-name: gambooge.
| instance-id: /MAAS/api/
| series: trusty
| containers:
| 5/lxc/0:
| agent-state-info: '(error: error executing "lxc-start": command get_cgroup
| failed to receive response)'
| instance-id: pending
| series: trusty
| 5/lxc/1:
| agent-state-info: '(error: error executing "lxc-start": command get_cgroup
| failed to receive response)'
| instance-id: pending
| series: trusty
| 5/lxc/2:
| agent-state-info: '(error: error executing "lxc-start": command get_cgroup
| failed to receive response)'
| instance-id: pending
| series: trusty
| 5/lxc/3:
| agent-state-info: '(error: error executing "lxc-start": command get_cgroup
| failed to receive response)'
| instance-id: pending
| series: trusty
| 5/lxc/4:
| agent-state-info: '(error: error executing "lxc-start": command get_cgroup
| failed to receive response)'
| instance-id: pending
| series: trusty
| 5/lxc/5:
| agent-state-info: '(error: error executing "lxc-start": command get_cgroup
| failed to receive response)'
| instance-id: pending
| series: trusty
Juju logs:
| ubuntu@gambooge:~$ cat /var/log/
| 2014-05-06 06:37:39 INFO juju.cmd supercommand.go:297 running juju-1.
| 2014-05-06 06:37:39 INFO juju.cmd.jujud machine.go:127 machine agent machine-5 start (1.18.1.
| 2014-05-06 06:37:39 DEBUG juju.agent agent.go:384 read agent config, format "1.18"
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "api"
| 2014-05-06 06:37:39 INFO juju apiclient.go:114 state/api: dialing "wss://
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "termination"
| 2014-05-06 06:37:39 INFO juju apiclient.go:124 state/api: connection established
| 2014-05-06 06:37:39 DEBUG juju.agent agent.go:523 writing configuration file
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "upgrader"
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "upgrade-steps"
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "machiner"
| 2014-05-06 06:37:39 INFO juju.cmd.jujud machine.go:458 upgrade to 1.18.1.
| 2014-05-06 06:37:39 INFO juju.cmd.jujud machine.go:445 upgrade to 1.18.1.
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "logger"
| 2014-05-06 06:37:39 DEBUG juju.worker.logger logger.go:35 initial log config: "<root>=DEBUG"
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "machineenviron
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "rsyslog"
| 2014-05-06 06:37:39 DEBUG juju.worker.logger logger.go:60 logger setup
| 2014-05-06 06:37:39 DEBUG juju.worker.
| 2014-05-06 06:37:39 DEBUG juju.worker.rsyslog worker.go:76 starting rsyslog worker mode 1 for "machine-5" ""
| 2014-05-06 06:37:39 INFO juju runner.go:262 worker: start "authentication
| 2014-05-06 06:37:39 INFO juju.worker.
| 2014-05-06 06:37:39 DEBUG juju.worker.logger logger.go:45 reconfiguring logging from "<root>=DEBUG" to "<root>
| 2014-05-06 06:38:11 ERROR juju.container.lxc lxc.go:217 container failed to start: error executing "lxc-start": command get_cgroup failed to receive response
| 2014-05-06 06:38:11 ERROR juju.provisione
| 2014-05-06 06:38:11 ERROR juju.provisioner provisioner_
| 2014-05-06 06:38:16 ERROR juju.container.lxc lxc.go:217 container failed to start: error executing "lxc-start": command get_cgroup failed to receive response
| 2014-05-06 06:38:16 ERROR juju.provisione
| 2014-05-06 06:38:16 ERROR juju.provisioner provisioner_
| 2014-05-06 06:38:21 ERROR juju.container.lxc lxc.go:217 container failed to start: error executing "lxc-start": command get_cgroup failed to receive response
| 2014-05-06 06:38:21 ERROR juju.provisione
| 2014-05-06 06:38:21 ERROR juju.provisioner provisioner_
| 2014-05-06 06:38:26 ERROR juju.container.lxc lxc.go:217 container failed to start: error executing "lxc-start": command get_cgroup failed to receive response
| 2014-05-06 06:38:26 ERROR juju.provisione
| 2014-05-06 06:38:26 ERROR juju.provisioner provisioner_
| 2014-05-06 06:38:31 ERROR juju.container.lxc lxc.go:217 container failed to start: error executing "lxc-start": command get_cgroup failed to receive response
| 2014-05-06 06:38:31 ERROR juju.provisione
| 2014-05-06 06:38:31 ERROR juju.provisioner provisioner_
| 2014-05-06 06:38:37 ERROR juju.container.lxc lxc.go:217 container failed to start: error executing "lxc-start": command get_cgroup failed to receive response
| 2014-05-06 06:38:37 ERROR juju.provisione
| 2014-05-06 06:38:37 ERROR juju.provisioner provisioner_
Output from trying to start these containers up manually:
| root@gambooge:
| lxc-start: No such file or directory - failed to create symlink for kmsg
| lxc-start: failed to setup kmsg for 'juju-machine-
| lxc-start: No such file or directory - Error creating /usr/lib/
| lxc-start: failed to setup /dev symlinks for 'juju-machine-
| lxc-start: failed to setup the container
| lxc-start: invalid sequence number 1. expected 2
Snippet from running lxc-start through strace:
| [pid 25920] mount("
| [pid 25920] read(11, "", 4096) = 0
| [pid 25920] close(11) = 0
| [pid 25920] munmap(
| [pid 25920] access(
| [pid 25920] unlink(
| [pid 25920] symlink("console", "/usr/lib/
| [pid 25920] write(3, " lxc-start 1399359039.165 E"..., 113) = 113
| [pid 25920] write(2, "lxc-start: ", 11lxc-start: ) = 11
| [pid 25920] write(2, "No such file or directory - fail"..., 61No such file or directory - failed to create symlink for kmsg) = 61
| [pid 25920] write(2, "\n", 1
| ) = 1
| [pid 25920] write(3, " lxc-start 1399359039.165 E"..., 99) = 99
| [pid 25920] write(2, "lxc-start: ", 11lxc-start: ) = 11
| [pid 25920] write(2, "failed to setup kmsg for 'juju-m"..., 47failed to setup kmsg for 'juju-machine-
| [pid 25920] write(2, "\n", 1
| ) = 1
| [pid 25920] symlink(
| [pid 25920] write(3, " lxc-start 1399359039.166 E"..., 131) = 131
| [pid 25920] write(2, "lxc-start: ", 11lxc-start: ) = 11
| [pid 25920] write(2, "No such file or directory - Erro"..., 79No such file or directory - Error creating /usr/lib/
| [pid 25920] write(2, "\n", 1
| ) = 1
| [pid 25920] write(3, " lxc-start 1399359039.166 E"..., 108) = 108
| [pid 25920] write(2, "lxc-start: ", 11lxc-start: ) = 11
| [pid 25920] write(2, "failed to setup /dev symlinks fo"..., 56failed to setup /dev symlinks for 'juju-machine-
| [pid 25920] write(2, "\n", 1
| ) = 1
| [pid 25920] write(3, " lxc-start 1399359039.167 E"..., 82) = 82
| [pid 25920] write(2, "lxc-start: ", 11lxc-start: ) = 11
| [pid 25920] write(2, "failed to setup the container", 29failed to setup the container) = 29
Any ideas what's going on here?
ii lxc 1.0.3-0ubuntu3 amd64
juju-core:
Installed: 1.18.1-
Candidate: 1.18.1-
apparmor:
Installed: 2.8.95~
Candidate: 2.8.95~
Thanks,
Haw
Turns out to be related to MAAS overriding our DNS configs so LXC containers weren't created correctly. I've marked this as invalid.