Juju agent uninstalls itself while adding machine

Bug #1574272 reported by Timo Nieminen
8
This bug affects 1 person
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://ppa.launchpad.net/juju/devel/ubuntu xenial main”
Maas is installed from Xenial default packages.

lsb_release:
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial

maas: 2.0.0~beta3+bzr4941-0ubuntu1
juju: 2.0-beta5-xenial-amd64

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/juju/machine-0.log in the pending machine, I found out that juju agent had cleanly uninstalled itself at the end of init. There is a lot of complaints of missing dependencies before that.

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/juju/machine-0.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/juju/wrench: no such file or directory
2016-04-24 01:07:25 INFO juju.worker.upgradesteps worker.go:72 no upgrade steps required or upgrade steps for 2.0-beta5 have already been run.
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.dependency engine.go:479 "upgrade-check-flag" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "logging-config-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "mgo-txn-resumer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "state" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-caller" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "disk-manager" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-identity-writer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "upgrade-steps-gate" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "upgrade-steps-flag" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machine-action-runner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "reboot-executor" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "log-sender" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-authkeys-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "migration-minion" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "unconverted-state-workers" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "serving-info-setter" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker runner.go:202 "engine" started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "proxy-config-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machiner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "tools-version-checker" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-config-watcher" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrader" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "migration-fortress" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "unconverted-api-workers" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "storage-provisioner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrade-steps-runner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-address-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "unit-agent-deployer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "agent" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "termination-signal-handler" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "state-config-watcher" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "upgrade-check-gate" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "logging-config-updater" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "mgo-txn-resumer" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "disk-manager" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-identity-writer" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machine-action-runner" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "reboot-executor" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-authkeys-updater" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "migration-minion" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrader" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "log-sender" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "state" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "proxy-config-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "serving-info-setter" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "unit-agent-deployer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "api-config-watcher" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machiner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "tools-version-checker" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "storage-provisioner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrade-steps-runner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-address-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-authkeys-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "upgrade-check-flag" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "logging-config-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "mgo-txn-resumer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "disk-manager" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-identity-writer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:465 "state-config-watcher" manifold worker started
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machine-action-runner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 INFO juju.api apiclient.go:494 dialing "wss://10.180.0.2:17070/model/c7cbb08d-4626-407a-8d64-b66808c3737d/api"
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "reboot-executor" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "migration-minion" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrader" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "migration-minion" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "proxy-config-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "tools-version-checker" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "log-sender" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-authkeys-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "migration-fortress" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "unconverted-api-workers" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "serving-info-setter" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "storage-provisioner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machiner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-address-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "logging-config-updater" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "unit-agent-deployer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "mgo-txn-resumer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "disk-manager" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "ssh-identity-writer" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "machine-action-runner" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "state" manifold worker stopped: dependency not available
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "reboot-executor" manifold worker stopped: dependency not available
2016-04-24 01:07:25 INFO juju.api apiclient.go:271 connection established to "wss://10.180.0.2:17070/model/c7cbb08d-4626-407a-8d64-b66808c3737d/api"
2016-04-24 01:07:25 INFO juju.api apiclient.go:494 dialing "wss://10.180.0.2:17070/model/c7cbb08d-4626-407a-8d64-b66808c3737d/api"
2016-04-24 01:07:25 INFO juju.api apiclient.go:271 connection established to "wss://10.180.0.2:17070/model/c7cbb08d-4626-407a-8d64-b66808c3737d/api"
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-caller" manifold worker stopped: cannot open api: connection permanently impossible
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.dependency engine.go:479 "upgrade-check-flag" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrade-check-gate" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "api-config-watcher" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrade-steps-gate" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "agent" manifold worker stopped: <nil>
2016-04-24 01:07:25 INFO juju.worker.stateconfigwatcher manifold.go:122 tomb dying
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "termination-signal-handler" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "upgrade-steps-flag" manifold worker stopped: <nil>
2016-04-24 01:07:25 DEBUG juju.worker.dependency engine.go:479 "state-config-watcher" manifold worker stopped: <nil>
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.systemd service.go:377 service "jujud-machine-0" successfully removed
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.systemd service.go:329 service "juju-db" not running
2016-04-24 01:07:26 DEBUG juju.service.systemd service.go:371 service "juju-db" not installed
2016-04-24 01:07:26 INFO cmd supercommand.go:454 command finished

~# cat /var/log/cloud-init-output.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.py[WARNING]: failed posting event: start: init-local/check-cache: attempting to read from cache [trust]
2016-04-24 01:07:02,299 - handlers.py[WARNING]: failed posting event: finish: init-local/check-cache: SUCCESS: no cache found
2016-04-24 01:07:02,316 - handlers.py[WARNING]: failed posting event: finish: init-local: SUCCESS: searching for local datasources
Cloud-init v. 0.7.7 running 'init' at Sun, 24 Apr 2016 01:07:03 +0000. Up 5.33 seconds.
ci-info: +++++++++++++++++++++++++++++++++++++Net device 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:ff:fec0:e7dd/64 | . | link | 52:54:00:c0:e7:dd |
ci-info: | ens10 | True | . | . | . | 52:54:00:c0:e6:dd |
ci-info: | ens10 | True | fe80::5054:ff:fec0:e6dd/64 | . | link | 52:54:00:c0:e6:dd |
ci-info: | ens9 | True | . | . | . | 52:54:00:c0:e5:dd |
ci-info: | ens9 | True | fe80::5054:ff:fec0:e5dd/64 | . | link | 52:54:00:c0:e5:dd |
ci-info: | ens5 | True | . | . | . | 52:54:00:c0:e1:dd |
ci-info: | ens5 | True | fe80::5054:ff:fec0:e1dd/64 | . | link | 52:54:00:c0:e1:dd |
ci-info: | ens7 | True | . | . | . | 52:54:00:c0:e3:dd |
ci-info: | ens7 | True | fe80::5054:ff:fec0:e3dd/64 | . | link | 52:54:00:c0:e3:dd |
ci-info: | ens6 | True | . | . | . | 52:54:00:c0:e2:dd |
ci-info: | ens6 | True | fe80::5054:ff:fec0:e2dd/64 | . | link | 52:54:00:c0:e2:dd |
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:ff:fec0:e1dd/64 | . | link | 52:54:00:c0:e1:dd |
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:ff:fec0:e4dd/64 | . | link | 52:54:00:c0:e4:dd |
ci-info: | ens4 | True | 10.180.0.3 | 255.255.0.0 | . | 52:54:00:c0:e0:dd |
ci-info: | ens4 | True | fe80::5054:ff:fec0:e0dd/64 | . | link | 52:54:00:c0:e0:dd |
ci-info: +----------+------+----------------------------+-------------+-------+-------------------+
ci-info: +++++++++++++++++++++++++++Route IPv4 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/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
SHA256:NQY7MCZIXelt89r9SKSSX05IPksbE9yQ6vRpMjIAwLk root@stack-controller
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/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
SHA256:QVaep+1c61nzoFDmb24fQDuA1XB7hO4mRjNL7tOuzxM root@stack-controller
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/ssh_host_ecdsa_key.
Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub.
The key fingerprint is:
SHA256:CFVkhjEV4Vn4nPkMIoiw6QJ7il3egTZ9GeQAzlRRV9Q root@stack-controller
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/ssh_host_ed25519_key.
Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub.
The key fingerprint is:
SHA256:wQm4iTaFa0tHbLJrmLdysk2pJOU207wL+yqdXuFJf3w root@stack-controller
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://archive.ubuntu.com//ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com//ubuntu xenial-updates InRelease
Hit:3 http://archive.ubuntu.com//ubuntu xenial-security InRelease
Get:4 http://archive.ubuntu.com//ubuntu xenial/main Translation-en [568 kB]
Get:5 http://archive.ubuntu.com//ubuntu xenial/restricted Translation-en [2908 B]
Get:6 http://archive.ubuntu.com//ubuntu xenial/universe Translation-en [4354 kB]
Get:7 http://archive.ubuntu.com//ubuntu xenial/multiverse Translation-en [106 kB]
Get:8 http://archive.ubuntu.com//ubuntu xenial-updates/main Translation-en [28 B]
Get:9 http://archive.ubuntu.com//ubuntu xenial-updates/restricted Translation-en [28 B]
Get:10 http://archive.ubuntu.com//ubuntu xenial-updates/universe Translation-en [28 B]
Get:11 http://archive.ubuntu.com//ubuntu xenial-updates/multiverse Translation-en [28 B]
Get:12 http://archive.ubuntu.com//ubuntu xenial-security/main Translation-en [28 B]
Get:13 http://archive.ubuntu.com//ubuntu xenial-security/restricted Translation-en [28 B]
Get:14 http://archive.ubuntu.com//ubuntu xenial-security/universe Translation-en [28 B]
Get:15 http://archive.ubuntu.com//ubuntu xenial-security/multiverse Translation-en [28 B]
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://archive.ubuntu.com//ubuntu xenial/main amd64 tzdata all 2016d-0ubuntu0.16.04 [168 kB]
Preconfiguring packages ...
Fetched 168 kB in 0s (0 B/s)
(Reading database ... 59354 files and directories currently installed.)
Preparing to unpack .../tzdata_2016d-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2016d-0ubuntu0.16.04) over (2016c-1) ...
Setting up tzdata (2016d-0ubuntu0.16.04) ...

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-iostreams1.58.0
  libboost-random1.58.0 libboost-system1.58.0 libboost-thread1.58.0 libiscsi2
  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-iostreams1.58.0 libboost-random1.58.0
  libboost-system1.58.0 libboost-thread1.58.0 libiscsi2 libnspr4 libnss3
  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://archive.ubuntu.com//ubuntu xenial/main amd64 libiscsi2 amd64 1.12.0-2 [51.5 kB]
Get:2 http://archive.ubuntu.com//ubuntu xenial/main amd64 bridge-utils amd64 1.5-9ubuntu1 [28.6 kB]
Get:3 http://archive.ubuntu.com//ubuntu xenial/main amd64 msr-tools amd64 1.3-2 [10.6 kB]
Get:4 http://archive.ubuntu.com//ubuntu xenial/main amd64 cpu-checker amd64 0.7-0ubuntu7 [6862 B]
Get:5 http://archive.ubuntu.com//ubuntu xenial/main amd64 distro-info amd64 0.14build1 [20.0 kB]
Get:6 http://archive.ubuntu.com//ubuntu xenial/main amd64 genisoimage amd64 9:1.1.11-3ubuntu1 [316 kB]
Get:7 http://archive.ubuntu.com//ubuntu xenial/main amd64 libaio1 amd64 0.3.110-2 [6356 B]
Get:8 http://archive.ubuntu.com//ubuntu xenial/main amd64 libboost-iostreams1.58.0 amd64 1.58.0+dfsg-5ubuntu3 [28.8 kB]
Get:9 http://archive.ubuntu.com//ubuntu xenial/main amd64 libboost-system1.58.0 amd64 1.58.0+dfsg-5ubuntu3 [9038 B]
Get:10 http://archive.ubuntu.com//ubuntu xenial/main amd64 libboost-random1.58.0 amd64 1.58.0+dfsg-5ubuntu3 [11.7 kB]
Get:11 http://archive.ubuntu.com//ubuntu xenial/main amd64 libboost-thread1.58.0 amd64 1.58.0+dfsg-5ubuntu3 [47.0 kB]
Get:12 http://archive.ubuntu.com//ubuntu xenial/main amd64 libnspr4 amd64 2:4.11-1ubuntu1 [112 kB]
Get:13 http://archive.ubuntu.com//ubuntu xenial/main amd64 libnss3-nssdb all 2:3.21-1ubuntu4 [10.6 kB]
Get:14 http://archive.ubuntu.com//ubuntu xenial/main amd64 libnss3 amd64 2:3.21-1ubuntu4 [1129 kB]
Get:15 http://archive.ubuntu.com//ubuntu xenial/main amd64 librados2 amd64 10.1.2-0ubuntu1 [1631 kB]
Get:16 http://archive.ubuntu.com//ubuntu xenial/main amd64 librbd1 amd64 10.1.2-0ubuntu1 [2070 kB]
Get:17 http://archive.ubuntu.com//ubuntu xenial/main amd64 qemu-block-extra amd64 1:2.5+dfsg-5ubuntu10 [30.7 kB]
Get:18 http://archive.ubuntu.com//ubuntu xenial/main amd64 qemu-utils amd64 1:2.5+dfsg-5ubuntu10 [579 kB]
Get:19 http://archive.ubuntu.com//ubuntu xenial/main amd64 sharutils amd64 1:4.15.2-1 [148 kB]
Get:20 http://archive.ubuntu.com//ubuntu xenial/main amd64 cloud-image-utils all 0.27-0ubuntu24 [15.8 kB]
Get:21 http://archive.ubuntu.com//ubuntu xenial/main amd64 cloud-utils all 0.27-0ubuntu24 [1510 B]
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_1.12.0-2_amd64.deb ...
Unpacking libiscsi2:amd64 (1.12.0-2) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../bridge-utils_1.5-9ubuntu1_amd64.deb ...
Unpacking bridge-utils (1.5-9ubuntu1) ...
Selecting previously unselected package msr-tools.
Preparing to unpack .../msr-tools_1.3-2_amd64.deb ...
Unpacking msr-tools (1.3-2) ...
Selecting previously unselected package cpu-checker.
Preparing to unpack .../cpu-checker_0.7-0ubuntu7_amd64.deb ...
Unpacking cpu-checker (0.7-0ubuntu7) ...
Selecting previously unselected package distro-info.
Preparing to unpack .../distro-info_0.14build1_amd64.deb ...
Unpacking distro-info (0.14build1) ...
Selecting previously unselected package genisoimage.
Preparing to unpack .../genisoimage_9%3a1.1.11-3ubuntu1_amd64.deb ...
Unpacking genisoimage (9:1.1.11-3ubuntu1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../libaio1_0.3.110-2_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-2) ...
Selecting previously unselected package libboost-iostreams1.58.0:amd64.
Preparing to unpack .../libboost-iostreams1.58.0_1.58.0+dfsg-5ubuntu3_amd64.deb ...
Unpacking libboost-iostreams1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Selecting previously unselected package libboost-system1.58.0:amd64.
Preparing to unpack .../libboost-system1.58.0_1.58.0+dfsg-5ubuntu3_amd64.deb ...
Unpacking libboost-system1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Selecting previously unselected package libboost-random1.58.0:amd64.
Preparing to unpack .../libboost-random1.58.0_1.58.0+dfsg-5ubuntu3_amd64.deb ...
Unpacking libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Selecting previously unselected package libboost-thread1.58.0:amd64.
Preparing to unpack .../libboost-thread1.58.0_1.58.0+dfsg-5ubuntu3_amd64.deb ...
Unpacking libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../libnspr4_2%3a4.11-1ubuntu1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.11-1ubuntu1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack .../libnss3-nssdb_2%3a3.21-1ubuntu4_all.deb ...
Unpacking libnss3-nssdb (2:3.21-1ubuntu4) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../libnss3_2%3a3.21-1ubuntu4_amd64.deb ...
Unpacking libnss3:amd64 (2:3.21-1ubuntu4) ...
Selecting previously unselected package librados2.
Preparing to unpack .../librados2_10.1.2-0ubuntu1_amd64.deb ...
Unpacking librados2 (10.1.2-0ubuntu1) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../librbd1_10.1.2-0ubuntu1_amd64.deb ...
Unpacking librbd1 (10.1.2-0ubuntu1) ...
Selecting previously unselected package qemu-block-extra:amd64.
Preparing to unpack .../qemu-block-extra_1%3a2.5+dfsg-5ubuntu10_amd64.deb ...
Unpacking qemu-block-extra:amd64 (1:2.5+dfsg-5ubuntu10) ...
Selecting previously unselected package qemu-utils.
Preparing to unpack .../qemu-utils_1%3a2.5+dfsg-5ubuntu10_amd64.deb ...
Unpacking qemu-utils (1:2.5+dfsg-5ubuntu10) ...
Selecting previously unselected package sharutils.
Preparing to unpack .../sharutils_1%3a4.15.2-1_amd64.deb ...
Unpacking sharutils (1:4.15.2-1) ...
Selecting previously unselected package cloud-image-utils.
Preparing to unpack .../cloud-image-utils_0.27-0ubuntu24_all.deb ...
Unpacking cloud-image-utils (0.27-0ubuntu24) ...
Selecting previously unselected package cloud-utils.
Preparing to unpack .../cloud-utils_0.27-0ubuntu24_all.deb ...
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-iostreams1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Setting up libboost-system1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Setting up libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
Setting up libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3) ...
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-extra:amd64 (1:2.5+dfsg-5ubuntu10) ...
Setting up qemu-utils (1:2.5+dfsg-5ubuntu10) ...
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/juju/MAASmachine.txt
+ trap rm -f "/tmp/add-juju-bridge.py" EXIT
+ [ -x /usr/bin/python2 ]
+ [ -x /usr/bin/python3 ]
+ juju_networking_preferred_python_binary=/usr/bin/python3
+ [ ! -z /usr/bin/python3 ]
+ [ -f /tmp/add-juju-bridge.py ]
+ juju_bridge_all_interfaces=1
+ [ 1 -eq 1 ]
+ /usr/bin/python3 /tmp/add-juju-bridge.py --bridge-prefix=br- --one-time-backup --activate /etc/network/interfaces
**** Original configuration
cat /etc/network/interfaces
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.180.255.255 Mask:255.255.0.0
          inet6 addr: fe80::5054:ff:fec0:e0dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e1dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e2dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e3dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e4dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e5dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e6dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e7dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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.181.255.255 Mask:255.255.0.0
          inet6 addr: fe80::5054:ff:fec0:e1dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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
          collisions:0 txqueuelen:1
          RX bytes:13352 (13.3 KB) TX bytes:13352 (13.3 KB)
ifdown --exclude=lo --interfaces=/etc/network/interfaces $(ifquery --interfaces=/etc/network/interfaces --exclude=lo --list)
Removed VLAN -:ens5.911:-
**** Activating new configuration
cat /etc/network/interfaces
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=/etc/network/interfaces $(ifquery --interfaces=/etc/network/interfaces --exclude=lo --list)
interface ens5.911 does not exist!
ip link show up
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br-ens4 state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e0:dd brd ff:ff:ff:ff:ff:ff
3: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e1:dd brd ff:ff:ff:ff:ff:ff
4: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e2:dd brd ff:ff:ff:ff:ff:ff
5: ens7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e3:dd brd ff:ff:ff:ff:ff:ff
6: ens8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e4:dd brd ff:ff:ff:ff:ff:ff
7: ens9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e5:dd brd ff:ff:ff:ff:ff:ff
8: ens10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e6:dd brd ff:ff:ff:ff:ff:ff
9: ens11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e7:dd brd ff:ff:ff:ff:ff:ff
11: br-ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 52:54:00:c0:e0:dd brd ff:ff:ff:ff:ff:ff
12: br-ens5.911: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    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.180.255.255 Mask:255.255.0.0
          inet6 addr: fe80::5054:ff:fec0:e0dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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.181.255.255 Mask:255.255.0.0
          inet6 addr: fe80::7cc2:2ff:fe1a:32b5/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e1dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e2dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e3dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e4dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e5dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e6dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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:ff:fec0:e7dd/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          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
          collisions:0 txqueuelen:1
          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/system/juju-clean-shutdown.service
+ printf %s\n
[Unit]
Description=Stop all network interfaces on shutdown
DefaultDependencies=false
After=final.target

[Service]
Type=oneshot
ExecStart=/sbin/ifdown -a -v --force
StandardOutput=tty
StandardError=tty

[Install]
WantedBy=final.target

+ /bin/systemctl enable /etc/systemd/system/juju-clean-shutdown.service
Created symlink from /etc/systemd/system/final.target.wants/juju-clean-shutdown.service to /etc/systemd/system/juju-clean-shutdown.service.
+ install -D -m 644 /dev/null /var/lib/juju/nonce.txt
+ printf %s\n machine-0:a1fbef06-fff3-4ed8-8bd3-d7789b57acd8
+ test -e /proc/self/fd/9
+ exec
+ [ ! -e /home/ubuntu/.profile ]
+ grep -q .juju-proxy /home/ubuntu/.profile
+ printf \n# Added by juju\n[ -f "$HOME/.juju-proxy" ] && . "$HOME/.juju-proxy"\n
+ 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=1000(ubuntu),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev)
+ chown syslog:adm /var/log/juju
+ bin=/var/lib/juju/tools/2.0-beta5-xenial-amd64
+ mkdir -p /var/lib/juju/tools/2.0-beta5-xenial-amd64
+ 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://10.180.0.2:17070/tools/2.0-beta5-xenial-amd64]>
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://10.180.0.2:17070/tools/2.0-beta5-xenial-amd64]>
+ n=1
+ true
+ printf Attempt 1 to download tools from %s...\n https://10.180.0.2:17070/tools/2.0-beta5-xenial-amd64
Attempt 1 to download tools from https://10.180.0.2:17070/tools/2.0-beta5-xenial-amd64...
+ 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/juju/tools/2.0-beta5-xenial-amd64/tools.tar.gz https://10.180.0.2:17070/tools/2.0-beta5-xenial-amd64
tools from https://10.180.0.2:17070/tools/2.0-beta5-xenial-amd64 downloaded: HTTP 200; time 0.413s; size 19512641 bytes; speed 47192056.000 bytes/s + echo Tools downloaded successfully.
Tools downloaded successfully.
+ break
+ sha256sum /var/lib/juju/tools/2.0-beta5-xenial-amd64/tools.tar.gz
+ grep 0c2754660e835595292931dc31b0203ea7a468a3aee84a6f0c65594a70a9200f /var/lib/juju/tools/2.0-beta5-xenial-amd64/juju2.0-beta5-xenial-amd64.sha256
0c2754660e835595292931dc31b0203ea7a468a3aee84a6f0c65594a70a9200f /var/lib/juju/tools/2.0-beta5-xenial-amd64/tools.tar.gz
+ tar zxf /var/lib/juju/tools/2.0-beta5-xenial-amd64/tools.tar.gz -C /var/lib/juju/tools/2.0-beta5-xenial-amd64
+ printf %s {"version":"2.0-beta5-xenial-amd64","url":"https://10.180.0.2:17070/model/c7cbb08d-4626-407a-8d64-b66808c3737d/tools/2.0-beta5-xenial-amd64","sha256":"0c2754660e835595292931dc31b0203ea7a468a3aee84a6f0c65594a70a9200f","size":19512641}
+ mkdir -p /var/lib/juju/agents/machine-0
+ cat
+ chmod 0600 /var/lib/juju/agents/machine-0/agent.conf
+ ln -s 2.0-beta5-xenial-amd64 /var/lib/juju/tools/machine-0
+ echo Starting Juju machine agent (jujud-machine-0)
Starting Juju machine agent (jujud-machine-0)
+ mkdir -p /var/lib/juju/init/jujud-machine-0
+ cat
+ chmod 0755 /var/lib/juju/init/jujud-machine-0/exec-start.sh
+ cat
+ /bin/systemctl link /var/lib/juju/init/jujud-machine-0/jujud-machine-0.service
Created symlink from /etc/systemd/system/jujud-machine-0.service to /var/lib/juju/init/jujud-machine-0/jujud-machine-0.service.
+ /bin/systemctl daemon-reload
+ /bin/systemctl enable /var/lib/juju/init/jujud-machine-0/jujud-machine-0.service
Created symlink from /etc/systemd/system/multi-user.target.wants/jujud-machine-0.service to /var/lib/juju/init/jujud-machine-0/jujud-machine-0.service.
+ /bin/systemctl start jujud-machine-0.service
+ rm /var/lib/juju/tools/2.0-beta5-xenial-amd64/tools.tar.gz
+ rm /var/lib/juju/tools/2.0-beta5-xenial-amd64/juju2.0-beta5-xenial-amd64.sha256
+ rm -f /tmp/add-juju-bridge.py
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://10.180.0.1/MAAS/metadata/]. Up 28.68 seconds

Revision history for this message
Cheryl Jennings (cherylj) wrote :

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.

Changed in juju-core:
status: New → Incomplete
Revision history for this message
Timo Nieminen (tnx) wrote :

Yes, I'm able to reproduce this every time. I'm essentially stuck on this one as I can't add a single machine without the aforementioned happening.

If you can supply a debug juju, I'm happy to run it for you. Also if you need any extra information just ask.

It's a test install so there's also nothing that needs to be censored about the config or setup.

For the setup, I'm using three virtual machines running on KVM (manually created xml files to define the virtuals with virsh, nothing fancy on management).
One virtual for Maas (running juju commands from this machine ip: 10.180.0.1)
Two virtuals in Maas power controlled with virsh, juju controller gets 10.180.0.2 and the first added machine gets 10.180.0.3.

I've killed the controller quite a few times and bootstrapped it again and retried either only doing "add machine" or trying "deploy rabbitmq-server" or "deploy mysql" just to see if something works. Every time things go wrong while adding the machine. The agent uninstalls itself and juju sees the machine eternally pending.

Also I've not figured an easy way to clean the pending machine, but as it's the only one I can just kill controller. Which only works after I release both nodes from maas.

I've been running the juju bootstrap as root most of the time, could that be doing something wonky?

Revision history for this message
Timo Nieminen (tnx) wrote :

Updated with:
 http://ppa.launchpad.net/juju/devel/ubuntu xenial/main amd64 juju-2.0 amd64 2.0-beta6-0ubuntu1~16.04.1~juju1

Killed old controlled and bootstrapped again.
Tried adding machine. Adding worked without an issue.

Issue seems to be fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.