br0 not brought up by cloud-init script with MAAS provider
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Andrew Wilkins | ||
juju-core (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Trusty |
Fix Released
|
Critical
|
Dimiter Naydenov |
Bug Description
Setup: a virtual OpenStack deployment on the cabeiri host in qalab.
There are three KVM VMs:
- virtmaas is the MAAS controller;
- virtjuju is the Juju bootstrap node (machine 0);
- virtstack is the OpenStack deployment target (machine 1).
Running the command:
test@virtmaas:~$ juju deploy --config=
this error appears after a while:
test@virtmaas:~$ juju status
environment: maas
machines:
"0":
agent-state: started
agent-version: 1.17.0.1
dns-name: virtjuju.master
instance-id: /MAAS/api/
series: precise
"1":
agent-state: started
agent-version: 1.17.0.1
dns-name: virtstack.master
instance-id: /MAAS/api/
series: precise
containers:
1/lxc/0:
failed to receive response)'
series: precise
services:
ceph:
charm: cs:precise/ceph-19
exposed: false
relations:
mon:
- ceph
units:
ceph/0:
machine: 1/lxc/0
On virtstack:
/var/log/
2014-01-21 11:09:50 INFO juju runner.go:262 worker: start "lxc-provisioner"
2014-01-21 11:09:50 INFO juju.provisioner provisioner_
2014-01-21 11:09:50 INFO juju.provisioner provisioner_
2014-01-21 11:09:50 INFO juju.provisione
2014-01-21 11:10:22 ERROR juju.container.lxc lxc.go:129 container failed to start: error executing "lxc-start": command get_init_pid failed to receive response
2014-01-21 11:10:22 ERROR juju.provisione
2014-01-21 11:10:22 ERROR juju.provisioner provisioner_
/var/log/
Apparently br0, needed by MAAS, is not brought up by Juju's cloud-init script:
ubuntu@virtstack:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:6c:c6:c1
inet addr:192.
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:84169 errors:0 dropped:0 overruns:0 frame:0
TX packets:26339 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:307004880 (307.0 MB) TX bytes:2763330 (2.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lxcbr0 Link encap:Ethernet HWaddr 22:14:e3:a6:66:d0
inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::2014:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:2016 (2.0 KB)
Bringing it up manually:
ubuntu@virtstack:~$ sudo bash -c "ifdown eth0; ifup eth0; ifup br0"
* Disconnecting iSCSI targets
...done.
* Stopping iSCSI initiator service
...done.
* Starting iSCSI initiator service iscsid
...done.
* Setting up iSCSI targets
...done.
ssh stop/waiting
ssh start/running, process 1369
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
* Setting up iSCSI targets
...done.
ssh stop/waiting
ssh start/running, process 1486
ubuntu@virtstack:~$ ifconfig
br0 Link encap:Ethernet HWaddr 52:54:00:6c:c6:c1
inet addr:192.
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:5632 (5.6 KB) TX bytes:5539 (5.5 KB)
eth0 Link encap:Ethernet HWaddr 52:54:00:6c:c6:c1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:84338 errors:0 dropped:0 overruns:0 frame:0
TX packets:26466 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:307020587 (307.0 MB) TX bytes:2778824 (2.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lxcbr0 Link encap:Ethernet HWaddr 22:14:e3:a6:66:d0
inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::2014:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:2016 (2.0 KB)
Deploying ceph again now works.
Related branches
- Juju Engineering: Pending requested
-
Diff: 11 lines (+1/-0)1 file modifiedprovider/maas/environ.go (+1/-0)
- Juju Engineering: Pending requested
-
Diff: 142 lines (+65/-12)5 files modifiedprovider/maas/environ.go (+21/-10)
provider/maas/environ_test.go (+15/-0)
provider/maas/export_test.go (+3/-2)
utils/apt.go (+10/-0)
utils/apt_test.go (+16/-0)
tags: | added: local-provider lxc |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0 |
Changed in juju-core: | |
milestone: | 2.0 → 1.18.0 |
tags: | added: maas |
Changed in juju-core: | |
importance: | High → Critical |
tags: | added: regression |
Changed in juju-core: | |
milestone: | 1.18.0 → 1.17.5 |
status: | Triaged → In Progress |
assignee: | nobody → Roger Peppe (rogpeppe) |
tags: | added: cloud-installer |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
status: | Fix Released → Triaged |
milestone: | 1.17.5 → 1.17.6 |
Changed in juju-core: | |
assignee: | Roger Peppe (rogpeppe) → Andrew Wilkins (axwalk) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
tags: | added: canonical-is |
no longer affects: | juju-core/1.20 |
tags: | added: cts |
I get the same behavior with 1.17.3, but NOT 1.16.6. With 1.16.6, the br0 interface is up.
I bootstrap using maas, and then juju ssh 0. This is what I see: ff:fe50: d428/64 Scope:Link
collisions: 0 txqueuelen:1000
$ ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:50:d4:28
inet addr:10.0.5.104 Bcast:10.0.5.255 Mask:255.255.255.0
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14003 errors:0 dropped:0 overruns:0 frame:0
TX packets:6573 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:146427029 (146.4 MB) TX bytes:488564 (488.5 KB)
lo Link encap:Local Loopback
collisions: 0 txqueuelen:0
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1063 errors:0 dropped:0 overruns:0 frame:0
TX packets:1063 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:300269 (300.2 KB) TX bytes:300269 (300.2 KB)
This is the bit in cloud-init where it calls "service networking restart": juju/nonce. txt bootstrap 10.0.5. 10/MAAS/ metadata/]. Up 9.34 seconds
Cloud-init v. 0.7 running 'modules:final' at Mon, 24 Feb 2014 22:37:12 +0000. Up 9.17 seconds.
stop: Unknown instance:
networking stop/waiting
+ install -D -m 644 /dev/null /var/lib/
+ printf %s\n user-admin:
Cloud-init v. 0.7 finished at Mon, 24 Feb 2014 22:37:12 +0000. Datasource DataSourceMAAS [http://
Note that there are two networking scripts, but service ends up calling the upstart one: networking. conf /etc/init. d/networking d/networking networking. conf
# ls -la /etc/init/
-rwxr-xr-x 1 root root 2797 Feb 13 2012 /etc/init.
-rw-r--r-- 1 root root 388 Apr 5 2012 /etc/init/
The network config in /etc/network seems fine: interfaces
# cat /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0 eth0.config
source /etc/network/
and eth0.config
# cat /etc/network/
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
If I call "service networking restart" right now, br0 will show up: ff:fe50: d428/64 Scope:Link
collisions: 0 txqueuelen:0
root@n9a4m:~# service networking restart
stop: Unknown instance:
networking stop/waiting
root@n9a4m:~# ifconfig
br0 Link encap:Ethernet HWaddr 52:54:00:50:d4:28
inet addr:10.0.5.104 Bcast:10.0.5.255 Mask:255.255.255.0
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:3145 (3.1 KB) TX bytes:2644 (2.6 KB)
eth0 Link encap:Ethernet HWaddr 52:54:00:50:d4:28
collisions: 0 txqueuelen:1000
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14811 errors:0 dropped:0 overruns:0 frame:0
TX packets:7078 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:14649204...