juju bootstrap fails with MAAS trunk and juju (beta12 behind a proxy too)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
In Progress
|
Critical
|
Dimiter Naydenov |
Bug Description
We run tests in the MAAS CI lab for using Juju 2 with MAAS 2 and since Juju 2 has been updated to Beta 12, we have been observing the following failure on juju bootstrap:
testtools.
2016-07-29 11:08:28 INFO juju.cmd supercommand.go:63 running juju [2.0-beta12 gc go1.6.2]
2016-07-29 11:08:29 INFO cmd cmd.go:141 Adding contents of "/root/
2016-07-29 11:08:29 INFO cmd cmd.go:141 Adding contents of "/root/
2016-07-29 11:08:29 DEBUG juju.cmd.
ssh-rsa <redacted> root@autopkgtest
]
2016-07-29 11:08:29 DEBUG juju.provider.maas environprovider
2016-07-29 11:08:29 INFO cmd cmd.go:129 Creating Juju controller "autopkgtest" on testmaas
2016-07-29 11:08:29 INFO juju.cmd.
2016-07-29 11:08:29 INFO cmd cmd.go:129 Bootstrapping model "controller"
2016-07-29 11:08:29 DEBUG juju.environs.
2016-07-29 11:08:29 DEBUG juju.environs.
2016-07-29 11:08:29 INFO cmd cmd.go:129 Starting new instance for initial controller
Launching instance
2016-07-29 11:08:29 WARNING juju.provider.maas environ.go:688 no architecture was specified, acquiring an arbitrary node
2016-07-29 11:08:30 DEBUG juju.cloudconfi
2016-07-29 11:08:30 DEBUG juju.service discovery.go:62 discovered init system "systemd" from series "xenial"
2016-07-29 11:08:30 DEBUG juju.provider.maas environ.go:943 maas user data; 7436 bytes
2016-07-29 11:08:30 DEBUG juju.provider.maas interfaces.go:274 interface "enp3s0" has no address
2016-07-29 11:08:30 DEBUG juju.provider.maas interfaces.go:274 interface "enp2s0" has no address
2016-07-29 11:08:30 DEBUG juju.provider.maas environ.go:976 started instance "yhhche"
2016-07-29 11:08:31 DEBUG juju.provider.
- yhhche
2016-07-29 11:08:31 INFO juju.environs.
2016-07-29 11:08:31 INFO juju.environs.
2016-07-29 11:08:31 INFO cmd cmd.go:129 Building tools to upload (2.0-beta12.
2016-07-29 11:08:31 DEBUG juju.environs.sync sync.go:303 Building tools
2016-07-29 11:08:31 DEBUG juju.environs.tools build.go:125 looking for: juju
2016-07-29 11:08:31 DEBUG juju.environs.tools build.go:164 checking: /usr/lib/
2016-07-29 11:08:31 INFO juju.environs.tools build.go:170 found existing jujud
2016-07-29 11:08:31 INFO juju.environs.tools build.go:180 target: /tmp/juju-
2016-07-29 11:08:31 DEBUG juju.environs.tools build.go:235 forcing version to 2.0-beta12.1
2016-07-29 11:08:31 DEBUG juju.environs.tools build.go:41 adding entry: &tar.Header{
2016-07-29 11:08:31 DEBUG juju.environs.tools build.go:41 adding entry: &tar.Header{
2016-07-29 11:08:43 INFO juju.environs.sync sync.go:322 built tools 2.0-beta12.
2016-07-29 11:08:43 INFO cmd cmd.go:129 Installing Juju agent on bootstrap instance
2016-07-29 11:12:58 INFO cmd cmd.go:129 Unable to fetch Juju GUI info: error fetching simplestreams metadata: invalid URL "https:/
2016-07-29 11:16:30 DEBUG juju.cloudconfi
Waiting for address
Attempting to connect to 10.245.136.7:22
2016-07-29 11:16:31 DEBUG juju.provider.
2016-07-29 11:16:36 DEBUG juju.provider.
2016-07-29 11:16:42 DEBUG juju.provider.
/var/lib/
2016-07-29 11:16:47 DEBUG juju.provider.
2016-07-29 11:16:53 DEBUG juju.provider.
2016-07-29 11:16:58 DEBUG juju.provider.
2016-07-29 11:17:05 DEBUG juju.utils.ssh ssh.go:292 using OpenSSH ssh client
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
2016-07-29 11:18:17 INFO cmd cmd.go:129 Bootstrap agent installed
2016-07-29 11:18:17 DEBUG juju.juju api.go:246 API hostnames [10.245.
2016-07-29 11:18:17 INFO juju.juju api.go:268 new API addresses to cache [10.245.
2016-07-29 11:18:17 INFO juju.juju api.go:77 connecting to API addresses: [10.245.
2016-07-29 11:18:17 INFO juju.api apiclient.go:520 dialing "wss://
2016-07-29 11:18:17 DEBUG juju.api apiclient.go:526 error dialing "wss://
2016-07-29 11:18:19 INFO juju.api apiclient.go:520 dialing "wss://
2016-07-29 11:18:19 INFO juju.api apiclient.go:297 connection established to "wss://
2016-07-29 11:18:19 DEBUG juju.juju api.go:251 API hostnames unchanged - not resolving
2016-07-29 11:18:20 DEBUG juju.api apiclient.go:546 health ping failed: connection is shut down
2016-07-29 11:18:20 INFO cmd cmd.go:129 Waiting for API to become available: upgrade in progress (upgrade in progress)
(... repeats from 'connecting to API addresses'...)
2016-07-29 11:19:18 INFO juju.provider.
2016-07-29 11:19:18 INFO juju.provider.
2016-07-29 11:19:18 DEBUG juju.provider.
2016-07-29 11:19:18 INFO juju.provider.
2016-07-29 11:19:18 ERROR cmd supercommand.go:458 unable to contact api server after 61 attempts: upgrade in progress (upgrade in progress)
2016-07-29 11:19:18 DEBUG cmd supercommand.go:459 (error details: [{github.
}}}
On the MAAS side of things the controller node seems to deploy succesfully but when bootstrap fails it is automatically released.
summary: |
- juju bootstrap fails with MAAS trunk and juju beta12 + juju bootstrap fails with MAAS trunk and juju beta12 behind a proxy |
Changed in juju-core: | |
assignee: | nobody → Dimiter Naydenov (dimitern) |
Changed in juju-core: | |
milestone: | 2.0-beta14 → 2.0-beta15 |
Can you bootstrap with --keep-broken then ssh in and collect the contents of /var/log/ cloud-init* .log and /var/log/juju/* please?