juju ssh with proxy-ssh/--proxy uses incorrect address

Bug #1669180 reported by Andrew Wilkins
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Menno Finlay-Smits

Bug Description

https://github.com/juju/juju/commit/d25d100f3c04eb6dc22c58db51e87c1d947a6836 changed the Juju CLI so that the proxy-ssh model config and --proxy flag to SSH-related commands are ignored.

Because of this change, you can no longer SSH to a machine without a directly accessible IP. We don't necessarily need to have public IPs for all instances; only those that are exposed.

Reported by Gabriel Samfira.

Revision history for this message
Greg Lutostanski (lutostag) wrote :

This is an issue for at least the following public clouds:
 aws
 gce
 rackspace

Against these clouds the following commands will fail:
juju bootstrap
juju deploy ubuntu
juju wait
juju ssh ubuntu/0 # neither juju ssh --proxy ubuntu/0

tags: added: cdo-qa-blocker
Revision history for this message
Greg Lutostanski (lutostag) wrote :

(the ssh commands are what fails above from the repro above)

Changed in juju:
assignee: nobody → Menno Smits (menno.smits)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

@lutostag: Are you sure that your issue is the same as Gabriel's? It seems you're having trouble both with and without proxy support being enabled - or do you have the "proxy-ssh" option set? It isn't clear from what you've written.

Gabriel's issue is relates to this area:

https://github.com/juju/juju/commit/d25d100f3c04eb6dc22c58db51e87c1d947a6836#diff-f75a59a4d41206aca31bb545d00e3e31R326

Even though proxy-ssh or --proxy is used reachability is still checked from the client which is silly and will fail if instances don't have public addresses.

I'm exploring some possible fixes now.

Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :
Changed in juju:
status: In Progress → Fix Committed
summary: - proxy-ssh/juju ssh --proxy is ignored
+ juju ssh with proxy-ssh/juju ssh uses incorrect address
summary: - juju ssh with proxy-ssh/juju ssh uses incorrect address
+ juju ssh with proxy-ssh/--proxy uses incorrect address
Changed in juju:
status: Fix Committed → Fix Released
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.