Juju agent uninstalls itself while adding machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I’m having difficulty on adding machines with juju in a Maas 2.0 environment.
I’m using Xenial and beta release of Juju 2.0.
Juju is installed from ” http://
Maas is installed from Xenial default packages.
lsb_release:
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
maas: 2.0.0~beta3+
juju: 2.0-beta5-
If I used beta4 of juju, bootstrapping the controller failed. By using beta5 the controller bootstraps fine.
When using ”juju add-machine”, juju acquires new machine from Maas (Virsh power controlled kvm node) and does cloud init seemingly without an issue. The machine is stuck in pending state when checked from juju. Using ”juju ssh” to the machine works.
When I looked at /var/log/
Any ideas on what’s going wrong here? I haven’t been able to successfully add machine or service to Maas 2.0 and Juju 2.0 combination. I’ve reinstalled the Maas node a few times and bootstrapped the juju controller multiple times.
Logs:
# cat /var/log/
2016-04-24 01:07:25 INFO juju.cmd supercommand.go:60 running jujud [2.0-beta5 gc go1.6.1]
2016-04-24 01:07:25 DEBUG juju.agent agent.go:524 read agent config, format "1.18"
2016-04-24 01:07:25 INFO juju.cmd.jujud machine.go:385 machine agent machine-0 start (2.0-beta5 [gc])
2016-04-24 01:07:25 WARNING juju.cmd.jujud machine.go:387 developer feature flags enabled: "maas2"
2016-04-24 01:07:25 DEBUG juju.wrench wrench.go:112 couldn't read wrench directory: stat /var/lib/
2016-04-24 01:07:25 INFO juju.worker.
2016-04-24 01:07:25 INFO juju.network network.go:351 setting prefer-ipv6 to false
2016-04-24 01:07:25 INFO juju.worker runner.go:275 start "engine"
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker runner.go:202 "engine" started
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 INFO juju.api apiclient.go:494 dialing "wss://
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 INFO juju.api apiclient.go:271 connection established to "wss://
2016-04-24 01:07:25 INFO juju.api apiclient.go:494 dialing "wss://
2016-04-24 01:07:25 INFO juju.api apiclient.go:271 connection established to "wss://
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 INFO juju.agent uninstall.go:36 marking agent ready for uninstall
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 INFO juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 DEBUG juju.worker.
2016-04-24 01:07:25 INFO juju.worker runner.go:281 stopped "engine", err: agent should be terminated
2016-04-24 01:07:25 DEBUG juju.worker runner.go:209 "engine" done: agent should be terminated
2016-04-24 01:07:25 ERROR juju.worker runner.go:218 fatal "engine": agent should be terminated
2016-04-24 01:07:25 INFO juju.agent uninstall.go:47 agent already marked ready for uninstall
2016-04-24 01:07:25 INFO juju.cmd.jujud machine.go:1347 uninstalling agent
2016-04-24 01:07:25 DEBUG juju.service discovery.go:109 discovered init system "systemd" from local host
2016-04-24 01:07:26 DEBUG juju.service.
2016-04-24 01:07:26 DEBUG juju.service discovery.go:109 discovered init system "systemd" from local host
2016-04-24 01:07:26 DEBUG juju.service.
2016-04-24 01:07:26 DEBUG juju.service.
2016-04-24 01:07:26 INFO cmd supercommand.go:454 command finished
~# cat /var/log/
Cloud-init v. 0.7.7 running 'init-local' at Sun, 24 Apr 2016 01:07:02 +0000. Up 4.22 seconds.
2016-04-24 01:07:02,292 - handlers.
2016-04-24 01:07:02,299 - handlers.
2016-04-24 01:07:02,316 - handlers.
Cloud-init v. 0.7.7 running 'init' at Sun, 24 Apr 2016 01:07:03 +0000. Up 5.33 seconds.
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | ens11 | True | . | . | . | 52:54:00:c0:e7:dd |
ci-info: | ens11 | True | fe80::5054:
ci-info: | ens10 | True | . | . | . | 52:54:00:c0:e6:dd |
ci-info: | ens10 | True | fe80::5054:
ci-info: | ens9 | True | . | . | . | 52:54:00:c0:e5:dd |
ci-info: | ens9 | True | fe80::5054:
ci-info: | ens5 | True | . | . | . | 52:54:00:c0:e1:dd |
ci-info: | ens5 | True | fe80::5054:
ci-info: | ens7 | True | . | . | . | 52:54:00:c0:e3:dd |
ci-info: | ens7 | True | fe80::5054:
ci-info: | ens6 | True | . | . | . | 52:54:00:c0:e2:dd |
ci-info: | ens6 | True | fe80::5054:
ci-info: | ens5.911 | True | 10.181.0.2 | 255.255.0.0 | . | 52:54:00:c0:e1:dd |
ci-info: | ens5.911 | True | fe80::5054:
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . |
ci-info: | lo | True | ::1/128 | . | host | . |
ci-info: | ens8 | True | . | . | . | 52:54:00:c0:e4:dd |
ci-info: | ens8 | True | fe80::5054:
ci-info: | ens4 | True | 10.180.0.3 | 255.255.0.0 | . | 52:54:00:c0:e0:dd |
ci-info: | ens4 | True | fe80::5054:
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +------
ci-info: | 0 | 0.0.0.0 | 10.180.0.1 | 0.0.0.0 | ens4 | UG |
ci-info: | 1 | 10.180.0.0 | 0.0.0.0 | 255.255.0.0 | ens4 | U |
ci-info: | 2 | 10.181.0.0 | 0.0.0.0 | 255.255.0.0 | ens5.911 | U |
ci-info: +------
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[RSA 2048]----+
|o.oo..=.. |
| +. .o.o o . |
| o . .o * |
| E . . +* + |
| . .So+ o |
| . o =.* |
| o *o%.+ |
| o.B.@.. |
| + o.. |
+----[SHA256]-----+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[DSA 1024]----+
| o..oo... |
| o .o..oo |
| ..o.oo . |
| . Oo.o |
| S = O+. |
| @ Eo. |
| + B +o.|
| +.*o++|
| .*B*.o|
+----[SHA256]-----+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[ECDSA 256]---+
| oo*OX+ooo. |
|. + .o=o+ E |
| + .+. +oo o |
|+ . ....+ * |
|o. o..S+ + |
|o.. = o o o |
|o+ + o o |
|o . . . |
| |
+----[SHA256]-----+
Generating public/private ed25519 key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+--[ED25519 256]--+
| o .. |
| o * o . |
| O o + |
| O + . |
| *.=o S |
|oo=* + . |
|.=Oo* . o E |
|*==* . . . |
|oB=o+. |
+----[SHA256]-----+
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
Hit:1 http://
Hit:2 http://
Hit:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Fetched 5031 kB in 1s (3540 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
tzdata
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 168 kB of archives.
After this operation, 7168 B of additional disk space will be used.
Get:1 http://
Preconfiguring packages ...
Fetched 168 kB in 0s (0 B/s)
(Reading database ... 59354 files and directories currently installed.)
Preparing to unpack .../tzdata_
Unpacking tzdata (2016d-
Setting up tzdata (2016d-
Current default time zone: 'Etc/UTC'
Local time is now: Sun Apr 24 01:07:15 UTC 2016.
Universal Time is now: Sun Apr 24 01:07:15 UTC 2016.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.47.0-1ubuntu2).
tmux is already the newest version (2.1-3build1).
The following additional packages will be installed:
distro-info genisoimage libaio1 libboost-
libboost-
libnspr4 libnss3 libnss3-nssdb librados2 librbd1 msr-tools qemu-block-extra
qemu-utils sharutils
Suggested packages:
cloud-utils-euca shunit2 wodim cdrkit-doc debootstrap bsd-mailx | mailx
The following NEW packages will be installed:
bridge-utils cloud-image-utils cloud-utils cpu-checker distro-info
genisoimage libaio1 libboost-
libboost-
libnss3-nssdb librados2 librbd1 msr-tools qemu-block-extra qemu-utils
sharutils
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Need to get 6265 kB of archives.
After this operation, 23.9 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Fetched 6265 kB in 0s (77.4 MB/s)
Selecting previously unselected package libiscsi2:amd64.
(Reading database ... 59360 files and directories currently installed.)
Preparing to unpack .../libiscsi2_
Unpacking libiscsi2:amd64 (1.12.0-2) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../bridge-
Unpacking bridge-utils (1.5-9ubuntu1) ...
Selecting previously unselected package msr-tools.
Preparing to unpack .../msr-
Unpacking msr-tools (1.3-2) ...
Selecting previously unselected package cpu-checker.
Preparing to unpack .../cpu-
Unpacking cpu-checker (0.7-0ubuntu7) ...
Selecting previously unselected package distro-info.
Preparing to unpack .../distro-
Unpacking distro-info (0.14build1) ...
Selecting previously unselected package genisoimage.
Preparing to unpack .../genisoimage
Unpacking genisoimage (9:1.1.11-3ubuntu1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../libaio1_
Unpacking libaio1:amd64 (0.3.110-2) ...
Selecting previously unselected package libboost-
Preparing to unpack .../libboost-
Unpacking libboost-
Selecting previously unselected package libboost-
Preparing to unpack .../libboost-
Unpacking libboost-
Selecting previously unselected package libboost-
Preparing to unpack .../libboost-
Unpacking libboost-
Selecting previously unselected package libboost-
Preparing to unpack .../libboost-
Unpacking libboost-
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../libnspr4_
Unpacking libnspr4:amd64 (2:4.11-1ubuntu1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack .../libnss3-
Unpacking libnss3-nssdb (2:3.21-1ubuntu4) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../libnss3_
Unpacking libnss3:amd64 (2:3.21-1ubuntu4) ...
Selecting previously unselected package librados2.
Preparing to unpack .../librados2_
Unpacking librados2 (10.1.2-0ubuntu1) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../librbd1_
Unpacking librbd1 (10.1.2-0ubuntu1) ...
Selecting previously unselected package qemu-block-
Preparing to unpack .../qemu-
Unpacking qemu-block-
Selecting previously unselected package qemu-utils.
Preparing to unpack .../qemu-
Unpacking qemu-utils (1:2.5+
Selecting previously unselected package sharutils.
Preparing to unpack .../sharutils_
Unpacking sharutils (1:4.15.2-1) ...
Selecting previously unselected package cloud-image-utils.
Preparing to unpack .../cloud-
Unpacking cloud-image-utils (0.27-0ubuntu24) ...
Selecting previously unselected package cloud-utils.
Preparing to unpack .../cloud-
Unpacking cloud-utils (0.27-0ubuntu24) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up libiscsi2:amd64 (1.12.0-2) ...
Setting up bridge-utils (1.5-9ubuntu1) ...
Setting up msr-tools (1.3-2) ...
Setting up cpu-checker (0.7-0ubuntu7) ...
Setting up distro-info (0.14build1) ...
Setting up genisoimage (9:1.1.11-3ubuntu1) ...
Setting up libaio1:amd64 (0.3.110-2) ...
Setting up libboost-
Setting up libboost-
Setting up libboost-
Setting up libboost-
Setting up libnspr4:amd64 (2:4.11-1ubuntu1) ...
Setting up sharutils (1:4.15.2-1) ...
Setting up libnss3-nssdb (2:3.21-1ubuntu4) ...
Setting up libnss3:amd64 (2:3.21-1ubuntu4) ...
Setting up librados2 (10.1.2-0ubuntu1) ...
Setting up librbd1 (10.1.2-0ubuntu1) ...
Setting up qemu-block-
Setting up qemu-utils (1:2.5+
Setting up cloud-image-utils (0.27-0ubuntu24) ...
Setting up cloud-utils (0.27-0ubuntu24) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Cloud-init v. 0.7.7 running 'modules:config' at Sun, 24 Apr 2016 01:07:08 +0000. Up 10.99 seconds.
+ mkdir -p /var/lib/juju
+ cat
+ chmod 0755 /var/lib/
+ trap rm -f "/tmp/add-
+ [ -x /usr/bin/python2 ]
+ [ -x /usr/bin/python3 ]
+ juju_networking
+ [ ! -z /usr/bin/python3 ]
+ [ -f /tmp/add-
+ juju_bridge_
+ [ 1 -eq 1 ]
+ /usr/bin/python3 /tmp/add-
**** Original configuration
cat /etc/network/
auto lo
iface lo inet loopback
dns-search maas
dns-nameservers 10.180.0.1
auto ens10
iface ens10 inet manual
mtu 1500
auto ens11
iface ens11 inet manual
mtu 1500
auto ens4
iface ens4 inet static
address 10.180.0.3/16
gateway 10.180.0.1
mtu 1500
auto ens5
iface ens5 inet manual
mtu 1500
auto ens6
iface ens6 inet manual
mtu 1500
auto ens7
iface ens7 inet manual
mtu 1500
auto ens8
iface ens8 inet manual
mtu 1500
auto ens9
iface ens9 inet manual
mtu 1500
auto ens5.911
iface ens5.911 inet static
address 10.181.0.2/16
vlan-raw-device ens5
mtu 1500
vlan_id 911
ifconfig -a
ens4 Link encap:Ethernet HWaddr 52:54:00:c0:e0:dd
inet addr:10.180.0.3 Bcast:10.
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2543 errors:0 dropped:0 overruns:0 frame:0
TX packets:2394 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11700726 (11.7 MB) TX bytes:230976 (230.9 KB)
ens5 Link encap:Ethernet HWaddr 52:54:00:c0:e1:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:673 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44008 (44.0 KB) TX bytes:1254 (1.2 KB)
ens6 Link encap:Ethernet HWaddr 52:54:00:c0:e2:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:681 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44688 (44.6 KB) TX bytes:578 (578.0 B)
ens7 Link encap:Ethernet HWaddr 52:54:00:c0:e3:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:681 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44688 (44.6 KB) TX bytes:578 (578.0 B)
ens8 Link encap:Ethernet HWaddr 52:54:00:c0:e4:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:681 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44688 (44.6 KB) TX bytes:578 (578.0 B)
ens9 Link encap:Ethernet HWaddr 52:54:00:c0:e5:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:681 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44682 (44.6 KB) TX bytes:578 (578.0 B)
ens10 Link encap:Ethernet HWaddr 52:54:00:c0:e6:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:680 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44618 (44.6 KB) TX bytes:578 (578.0 B)
ens11 Link encap:Ethernet HWaddr 52:54:00:c0:e7:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:680 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44618 (44.6 KB) TX bytes:578 (578.0 B)
ens5.911 Link encap:Ethernet HWaddr 52:54:00:c0:e1:dd
inet addr:10.181.0.2 Bcast:10.
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
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:65536 Metric:1
RX packets:180 errors:0 dropped:0 overruns:0 frame:0
TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:13352 (13.3 KB) TX bytes:13352 (13.3 KB)
ifdown --exclude=lo --interfaces=
Removed VLAN -:ens5.911:-
**** Activating new configuration
cat /etc/network/
auto lo
iface lo inet loopback
dns-nameservers 10.180.0.1
dns-search maas
auto ens10
iface ens10 inet manual
mtu 1500
auto ens11
iface ens11 inet manual
mtu 1500
iface ens4 inet manual
auto br-ens4
iface br-ens4 inet static
address 10.180.0.3/16
gateway 10.180.0.1
mtu 1500
bridge_ports ens4
bridge_stp off
bridge_maxwait 0
auto ens5
iface ens5 inet manual
mtu 1500
auto ens6
iface ens6 inet manual
mtu 1500
auto ens7
iface ens7 inet manual
mtu 1500
auto ens8
iface ens8 inet manual
mtu 1500
auto ens9
iface ens9 inet manual
mtu 1500
iface ens5.911 inet manual
address 10.181.0.2/16
vlan-raw-device ens5
mtu 1500
vlan_id 911
auto br-ens5.911
iface br-ens5.911 inet static
address 10.181.0.2/16
mtu 1500
bridge_ports ens5.911
bridge_stp off
bridge_maxwait 0
ifup --exclude=lo --interfaces=
interface ens5.911 does not exist!
ip link show up
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens4: <BROADCAST,
link/ether 52:54:00:c0:e0:dd brd ff:ff:ff:ff:ff:ff
3: ens5: <BROADCAST,
link/ether 52:54:00:c0:e1:dd brd ff:ff:ff:ff:ff:ff
4: ens6: <BROADCAST,
link/ether 52:54:00:c0:e2:dd brd ff:ff:ff:ff:ff:ff
5: ens7: <BROADCAST,
link/ether 52:54:00:c0:e3:dd brd ff:ff:ff:ff:ff:ff
6: ens8: <BROADCAST,
link/ether 52:54:00:c0:e4:dd brd ff:ff:ff:ff:ff:ff
7: ens9: <BROADCAST,
link/ether 52:54:00:c0:e5:dd brd ff:ff:ff:ff:ff:ff
8: ens10: <BROADCAST,
link/ether 52:54:00:c0:e6:dd brd ff:ff:ff:ff:ff:ff
9: ens11: <BROADCAST,
link/ether 52:54:00:c0:e7:dd brd ff:ff:ff:ff:ff:ff
11: br-ens4: <BROADCAST,
link/ether 52:54:00:c0:e0:dd brd ff:ff:ff:ff:ff:ff
12: br-ens5.911: <BROADCAST,
link/ether 7e:c2:02:1a:32:b5 brd ff:ff:ff:ff:ff:ff
ifconfig -a
br-ens4 Link encap:Ethernet HWaddr 52:54:00:c0:e0:dd
inet addr:10.180.0.3 Bcast:10.
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:994 (994.0 B) TX bytes:90 (90.0 B)
br-ens5.911 Link encap:Ethernet HWaddr 7e:c2:02:1a:32:b5
inet addr:10.181.0.2 Bcast:10.
inet6 addr: fe80::7cc2:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)
ens4 Link encap:Ethernet HWaddr 52:54:00:c0:e0:dd
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2564 errors:0 dropped:0 overruns:0 frame:0
TX packets:2395 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11702370 (11.7 MB) TX bytes:231042 (231.0 KB)
ens5 Link encap:Ethernet HWaddr 52:54:00:c0:e1:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:693 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:45562 (45.5 KB) TX bytes:1418 (1.4 KB)
ens6 Link encap:Ethernet HWaddr 52:54:00:c0:e2:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:702 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46332 (46.3 KB) TX bytes:648 (648.0 B)
ens7 Link encap:Ethernet HWaddr 52:54:00:c0:e3:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:702 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46332 (46.3 KB) TX bytes:648 (648.0 B)
ens8 Link encap:Ethernet HWaddr 52:54:00:c0:e4:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:701 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46242 (46.2 KB) TX bytes:738 (738.0 B)
ens9 Link encap:Ethernet HWaddr 52:54:00:c0:e5:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:702 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46326 (46.3 KB) TX bytes:648 (648.0 B)
ens10 Link encap:Ethernet HWaddr 52:54:00:c0:e6:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:699 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46094 (46.0 KB) TX bytes:828 (828.0 B)
ens11 Link encap:Ethernet HWaddr 52:54:00:c0:e7:dd
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:700 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46172 (46.1 KB) TX bytes:738 (738.0 B)
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:65536 Metric:1
RX packets:180 errors:0 dropped:0 overruns:0 frame:0
TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:13352 (13.3 KB) TX bytes:13352 (13.3 KB)
ip route show
default via 10.180.0.1 dev br-ens4 onlink
10.180.0.0/16 dev br-ens4 proto kernel scope link src 10.180.0.3
10.181.0.0/16 dev br-ens5.911 proto kernel scope link src 10.181.0.2
brctl show
bridge name bridge id STP enabled interfaces
br-ens4 8000.525400c0e0dd no ens4
br-ens5.911 8000.000000000000 no
+ set -xe
+ install -D -m 644 /dev/null /etc/systemd/
+ printf %s\n
[Unit]
Description=Stop all network interfaces on shutdown
DefaultDependen
After=final.target
[Service]
Type=oneshot
ExecStart=
StandardOutput=tty
StandardError=tty
[Install]
WantedBy=
+ /bin/systemctl enable /etc/systemd/
Created symlink from /etc/systemd/
+ install -D -m 644 /dev/null /var/lib/
+ printf %s\n machine-
+ test -e /proc/self/fd/9
+ exec
+ [ ! -e /home/ubuntu/
+ grep -q .juju-proxy /home/ubuntu/
+ printf \n# Added by juju\n[ -f "$HOME/.juju-proxy" ] && . "$HOME/
+ mkdir -p /var/lib/juju/locks
+
+ chown ubuntu:ubuntu /var/lib/juju/locks
+ id ubuntu
+ mkdir -p /var/log/juju
uid=1000(ubuntu) gid=1000(ubuntu) groups=
+ chown syslog:adm /var/log/juju
+ bin=/var/
+ mkdir -p /var/lib/
+ echo Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --noproxy "*" --insecure -o $bin/tools.tar.gz <[https:/
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --noproxy "*" --insecure -o $bin/tools.tar.gz <[https:/
+ n=1
+ true
+ printf Attempt 1 to download tools from %s...\n https:/
Attempt 1 to download tools from https:/
+ curl -sSfw tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --noproxy * --insecure -o /var/lib/
tools from https:/
Tools downloaded successfully.
+ break
+ sha256sum /var/lib/
+ grep 0c2754660e83559
0c2754660e83559
+ tar zxf /var/lib/
+ printf %s {"version"
+ mkdir -p /var/lib/
+ cat
+ chmod 0600 /var/lib/
+ ln -s 2.0-beta5-
+ echo Starting Juju machine agent (jujud-machine-0)
Starting Juju machine agent (jujud-machine-0)
+ mkdir -p /var/lib/
+ cat
+ chmod 0755 /var/lib/
+ cat
+ /bin/systemctl link /var/lib/
Created symlink from /etc/systemd/
+ /bin/systemctl daemon-reload
+ /bin/systemctl enable /var/lib/
Created symlink from /etc/systemd/
+ /bin/systemctl start jujud-machine-
+ rm /var/lib/
+ rm /var/lib/
+ rm -f /tmp/add-
Cloud-init v. 0.7.7 running 'modules:final' at Sun, 24 Apr 2016 01:07:22 +0000. Up 24.07 seconds.
Cloud-init v. 0.7.7 finished at Sun, 24 Apr 2016 01:07:26 +0000. Datasource DataSourceMAAS [http://
I have seen this before (see bug #1514874). We really shouldn't be uninstalling juju on the machine if it fails to login.
Are you able to recreate this every time? It would be great if I could give you a debug juju to capture what the actual error is that's causing this, or if you could give recreate steps / configuration info.