juju bootstrap hangs forever at "Attempting to connect to 10.0.4.130:22"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Undecided
|
Unassigned | ||
golang (Ubuntu) |
Confirmed
|
Undecided
|
Michael Hudson-Doyle | ||
juju-core (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
lxd (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
In current zesty, "juju-2.0 bootstrap lxd localhost" does:
Creating Juju controller "lxd" on localhost/localhost
Looking for packaged Juju agent version 2.0-rc3 for amd64
Launching controller instance(s) on localhost/
- juju-5fc6db-0
Fetching Juju GUI 2.2.3
Waiting for address
Attempting to connect to 10.0.4.130:22
and then hangs forever. It does create the container:
| juju-5fc6db-0 | RUNNING | 10.0.4.130 (eth0) | | PERSISTENT | 0 |
and it runs:
$ lxc exec juju-5fc6db-0 systemctl is-active ssh
active
but ssh into it does not work:
Warning: Permanently added '10.0.4.130' (ECDSA) to the list of known hosts.
Permission denied (publickey).
Indeed it does not install an ssh key:
$ lxc exec juju-5fc6db-0 -- ls -l /home/ubuntu/.ssh
total 0
-rw------- 1 ubuntu ubuntu 0 Nov 24 14:04 authorized_keys
I guess it's supposed to, as apparently password authentication is disabled.
I didn't find a --debug switch or log file or anything similar -- can you reproduce this? If not, what can I do to provide further debugging?
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: juju-2.0 2.0~rc3-
ProcVersionSign
Uname: Linux 4.8.0-29-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: i3
Date: Thu Nov 24 15:01:52 2016
EcryptfsInUse: Yes
SourcePackage: juju-core
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- juju bootstrap hangs forever at "Attempting to connect to 10.0.4.32:22" + juju bootstrap hangs forever at "Attempting to connect to 10.0.4.130:22" |
description: | updated |
As a data point, I was doing the same last week in zesty, and it worked perfectly. Also juju-core itself did not change since then (it's the same version as in yakkety), so something underneath it broke.
I confirmed this bug with 2.0 final in zesty-proposed, same behaviour.