[Google] Using unreachable IP to bootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
$ juju bootstrap
[...]
Creating Juju controller "google-us-east1" on google/us-east1
Looking for packaged Juju agent version 2.5.1 for amd64
Launching controller instance(s) on google/us-east1...
- juju-987bab-0 (arch=amd64 mem=3.5G cores=4)
Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.14.0
Waiting for address
Attempting to connect to 34.73.17.197:22
Attempting to connect to 10.142.0.2:22
[...]
I'm trying to bootstrap to Google Cloud. 10.142.0.2 is a private address that is quite unlikely to be reachable, and actually might be in use by something entirely different. This could lead to bad consequences.
I believe we have all the information needed to avoid attempting the private IPs for public clouds, since they are most likely going to be unusable anyway. There's no point in sending the extra packets there at all, and/or waiting for a connection to fail.
Hmm, I don't think we can avoid it full stop as clouds support working through VPN and there's no promise of the public addresses. We'd have to figure out how to determine that as part of bootstrap so that we call when needed, but don't when not.