[2.0 rc1] juju can't access vSphere VM deployed with Xenial, cloud-init fails to set SSH keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Unassigned | ||
cloud-init |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I tried to do a bootstrap with vsphere as a provider using vsphere 6.0 and juju 1.25.5.
-------
vsphere:
type: vsphere
host: '**.***.*.***'
user: '<email address hidden>'
password: '**********'
datacenter: 'dc0'
bootstrap-
logging-config: "<root>
agent-stream: released
-------
Initially, I did not specify the default series and bootstrap VM deployed with Xenial, however, juju could not connect to it after getting the address and seems stuck trying to connect and I had to CTRL-C:
-------
$ juju bootstrap -e vsphere
ERROR the "vsphere" provider is provisional in this version of Juju. To use it anyway, set JUJU_DEV_
$ export JUJU_DEV_
$ juju bootstrap -e vsphere
Bootstrapping environment "vsphere"
Starting new instance for initial state server
Launching instance
- juju-e33e5800-
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.245.39.94:22
Attempting to connect to fe80::250:
^CInterrupt signalled: waiting for bootstrap to exit
ERROR failed to bootstrap environment: interrupted
-------
When I specified the default series to be trusty, it worked:
-------
vsphere:
type: vsphere
host: '**.***.*.***'
user: '<email address hidden>'
password: '**********'
datacenter: 'dc0'
default-series: trusty
bootstrap-
logging-config: "<root>
agent-stream: released
-------
This was the output:
-------
$ juju bootstrap -e vsphere
Bootstrapping environment "vsphere"
Starting new instance for initial state server
Launching instance
- juju-b157863b-
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.245.45.153:22
Attempting to connect to fe80::250:
Warning: Permanently added '10.245.45.153' (ECDSA) to the list of known hosts.
sudo: unable to resolve host ubuntuguest
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: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
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 ' --retry 10 -o $bin/tools.tar.gz <[https:/
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap agent installed
vsphere -> vsphere
Waiting for API to become available
Waiting for API to become available
Waiting for API to become available
Waiting for API to become available
Bootstrap complete
-------
description: | updated |
tags: | added: vsphere |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: oil-2.0 |
tags: | added: landscape |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0.0 → none |
milestone: | none → 2.0.0 |
Changed in juju: | |
milestone: | 2.0.0 → 2.0-beta18 |
tags: | added: ci |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
no longer affects: | juju-core |
Changed in juju: | |
milestone: | 2.0-beta18 → 2.0-beta19 |
Changed in juju: | |
milestone: | 2.0-beta19 → 2.0-rc1 |
Changed in juju: | |
milestone: | 2.0-rc1 → 2.0.0 |
summary: |
- juju bootstrap with vsphere provider hangs with xenial + juju bootstrap with vsphere provider hangs with xenial, cloud-init + doesn't set things up - keys not found |
summary: |
- juju bootstrap with vsphere provider hangs with xenial, cloud-init - doesn't set things up - keys not found + juju can't access vSphere VM deployed with Xenial, cloud-init fails to + set SSH keys |
summary: |
- juju can't access vSphere VM deployed with Xenial, cloud-init fails to - set SSH keys + [2.0 rc1] juju can't access vSphere VM deployed with Xenial, cloud-init + fails to set SSH keys |
Changed in juju: | |
status: | Triaged → Fix Released |
Changed in cloud-init: | |
status: | New → Fix Released |
Can you confirm that Xenial boots if you just launch it using vsphere as a host? If it does can we have all of /var/log please? My hunch is cloud-init is running something that hangs, which we may be responsible for.