juju scp and ssh fail with arg --proxy when no models are in focus

Bug #1662732 reported by Christopher Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Menno Finlay-Smits
2.1
Fix Released
High
Menno Finlay-Smits

Bug Description

When using either scp or ssh subcommand with the '--proxy' argument when no model is in focus causes the command to error and fail.

To reproduce:

$ juju bootstrap lxd/localhost proxybug-test
$ juju add-model testing-proxy
$ juju scp -m proxybug-test:controller 0:/var/log/syslog /tmp/ # This works
$ juju scp --proxy -m proxybug-test:controller 0:/var/log/syslog /tmp/ # This works too

$ juju destroy-model -y testing-proxy
# Now no models are in focus.

$ juju scp -m proxybug-test:controller 0:/var/log/syslog /tmp/ # This works
$ juju scp --proxy -m proxybug-test:controller 0:/var/log/syslog /tmp/ # This DOES NOT work
ERROR No model in focus.

Changed in juju:
importance: Undecided → High
milestone: none → 2.1.0
Changed in juju:
status: New → Triaged
milestone: 2.1.0 → 2.2.0-alpha1
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

Thanks for the excellent bug report. I can repro this (with `juju ssh` too).

Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :
Changed in juju:
assignee: nobody → Menno Smits (menno.smits)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
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.