juju-upgrader should warn you when you're not in the controller model

Bug #1741064 reported by Nick Moffitt
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Juju Upgrader
Fix Released
High
Unassigned

Bug Description

I had some rather perplexing behaviour when doing a juju-upgrader run, simply because I'd juju switched to another model and forgot to switch back. juju-upgrader should notice when you're not in the controller's own model, and advise you to change (and possibly offer to try a simple `juju switch controller` first?)

Related branches

Revision history for this message
Paul Collins (pjdc) wrote :

I just ran into what I assume is the same problem:

jenkins@juju-59050e-is-mojo-ci-0:~/juju-upgrader$ ./juju-upgrader --controller --models --percent 100 --version 2.2.9
[...]
2018-01-10 20:25:56 +0000 Create backup
ERROR backups are not supported for hosted models
jenkins@juju-59050e-is-mojo-ci-0:~/juju-upgrader$ _

"juju switch controller" and it worked.

Changed in juju-upgrader:
status: New → Confirmed
Paul Gear (paulgear)
Changed in juju-upgrader:
importance: Undecided → High
Haw Loeung (hloeung)
Changed in juju-upgrader:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.