Wily: add machine fails using kvm and lxcbr0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
High
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned | ||
Wily |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Juju fails to start a machine after add-machine takes place.
My environments.yaml:
local:
type: local
container: kvm
network-bridge: lxcbr0
Status output:
ubuntu@
environment: local
machines:
"0":
agent-state: started
agent-version: 1.24.7.1
dns-name: localhost
instance-id: localhost
series: wily
state-
"1":
agent-state: pending
instance-id: ubuntu-
series: wily
hardware: arch=amd64 cpu-cores=1 mem=512M root-disk=8192M
debug log:
http://
I never see anything in the logs which indicate machine-1 is being deployed or what else could be going on with it.
tags: | added: cloud-installer |
tags: | added: kvm |
tags: | added: network |
tags: | added: add-machine |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju-core: | |
status: | Triaged → Invalid |
tags: |
added: verification-done removed: verification-needed |
It appears that lxc-net starts up before all of the network interfaces (eth0 in this case) are online. When it checks to see if anything is using ips in 10.0.3.X/16 nothing is (because eth0 isn't up).
Then ifup-wait-all triggers an ifup eth0 which gets an ip from the hosts 10.0.3.1 lxcbr0 bridge but since the internal lxcbr0 is on 10.0.3.1, none of the traffic gets to eth0 (or out of it).
[ 11.456968] cloud-init[558]: Cloud-init v. 0.7.7 running 'init-local' at Tue, 27 Oct 2015 16:49:58 +0000. Up 11.03 seconds.^M^M ).^M^M local.service^ M^M online. target. ^M^M ..^M^M all-auto. service^ M^M service^ M^M .mount^ M^M ubuntu. com^M^M ubuntu. com^M^M +++++++ +++++++ +++++++ +++++++ +++Net device info+++ +++++++ +++++++ +++++++ +++++++ +++++++ +^M^M --+---- --+---- ------- ------- ------- -----+- ------- ------- +------ -+----- ------- ------- +^M^M --+---- --+---- ------- ------- ------- -----+- ------- ------- +------ -+----- ------- ------- +^M^M ff:fe77: 2e57/64 | . | link | 52:54:00:77:2e:57 |^M^M
[^[[32m OK ^[[0m] Started Initial cloud-init job (pre-networking
cloud-init-
[^[[32m OK ^[[0m] Started Container hypervisor based on LXC - boot time check.^M^M
[^[[32m OK ^[[0m] Started Wait for all "auto" /etc/ne...be up for network-
[^[[32m OK ^[[0m] Reached target Network is Online.^M^M
Starting /etc/rc.local Compatibility.
Starting Initial cloud-init job (metadata service crawler)...^M^M
ifup-wait-
[^[[32m OK ^[[0m] Started /etc/rc.local Compatibility.^M^M
rc-local.
tmp-tmpv77mgee6
[ 13.042028] cloud-init[880]: Oct 27 16:50:00 ubuntu <13>Oct 27 16:50:00 pollinate[941]: ERROR: Network communication failed [6]\n % Total % Received % Xferd Average Speed Time Time Time Current^M^M
[ 13.045474] cloud-init[880]: Dload Upload Total Spent Left Speed^M^M
[ 13.046276] cloud-init[880]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 016:50:00.039432 * Could not resolve host: entropy.
[ 13.046467] cloud-init[880]: 16:50:00.039489 * Closing connection 0^M^M
[ 13.046648] cloud-init[880]: curl: (6) Could not resolve host: entropy.
[ 13.050804] cloud-init[880]: Cloud-init v. 0.7.7 running 'init' at Tue, 27 Oct 2015 16:50:00 +0000. Up 12.60 seconds.^M^M
[ 13.052244] cloud-init[880]: ci-info: +++++++
[ 13.052431] cloud-init[880]: ci-info: +------
[ 13.052615] cloud-init[880]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |^M^M
[ 13.052794] cloud-init[880]: ci-info: +------
[ 13.052973] cloud-init[880]: ci-info: | eth0 | True | 10.0.3.90 | 255.255.255.0 | . | 52:54:00:77:2e:57 |^M^M
[ 13.053149] cloud-init[880]: ci-info: | eth0 | True | fe80::5054:
[ 13.053368] cloud-init[880]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . |^M^M
[ 13.055164] cloud-init[880]: ci-info: | lo | True | ::1/128 | . | host | . |^M^M
[ 13.055340] cloud-init[880]: ci-info: | lxcbr0 | True | 10.0.3.1 | 255.255.255.0 | . | 1e:e1:f4:04:a6:85 |^M^M
[ 13.055516] cloud-init[880]: ci-info: | lxcbr0 | True | fe80::...