juju status returns ERROR not logged in

Bug #1609893 reported by Matt Bruzek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
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)
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.