juju status returns ERROR not logged in

Bug #1609893 reported by Matt Bruzek on 2016-08-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
Medium
Unassigned

Bug Description

While using juju for testing and I encountered a situation where I am "not logged in" and when trying to log in that fails.

ubuntu@devbox:~$ juju status
ERROR not logged in

Please use "juju controllers" to view all controllers available to you.
You can login into an existing controller using "juju login -c <controller>".

ubuntu@devbox:~$ juju login -c amazon
username: mbruzek
ERROR already logged in

Run "juju logout" first before attempting to log in as a different user.

ubuntu@devbox:~$ juju status
ERROR not logged in

Please use "juju controllers" to view all controllers available to you.
You can login into an existing controller using "juju login -c <controller>".

ubuntu@devbox:~$ juju controllers
CONTROLLER MODEL USER CLOUD/REGION
amazon default admin@local aws/us-west-1

I arrived at this situation using the following steps:

juju bootstrap amazon aws/us-west-1
juju bootstrap google google/us-central1
juju destroy-controller -y google --destroy-all-models

Juju seems to have lost context and the error message has nothing to do with the actual problem.

As it turns out a `juju switch amazon` solved my problem. While destroying controller can Juju switch to the other available controllers? Or at least present a better error message?

tags: added: usability
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Curtis Hovey (sinzui) on 2016-10-06
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui) on 2016-10-28
Changed in juju:
milestone: 2.0.1 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers