Shared controller in 2.0-rc2 user management appears broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned | ||
2.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
2.1 |
Incomplete
|
High
|
Horacio Durán |
Bug Description
I have several users defined in my controller:
charles@failbowl ~$ juju users
CONTROLLER: container-lab
NAME DISPLAY NAME ACCESS DATE CREATED LAST CONNECTION
admin* admin superuser 2016-09-29 just now
bcsaller superuser 2016-09-29 2016-09-29
kwmonroe superuser 2016-09-29 2016-09-29
When sharing this controller, most users we able to access and query the controller nearly instantly. My colleague mbruzek waited a few days and is now prompted for a password that he is unable to satisfy. I thought I would remove and re-add his user:
charles@failbowl ~$ juju remove-user mbruzek
WARNING! This command will remove the user "mbruzek" from the "container-lab" controller.
Continue (y/N)? y
ERROR "mbruzek" user not found
charles@failbowl ~$ juju add-user mbruzek
ERROR failed to create user: user already exists
charles@failbowl ~$ juju --version
2.0-rc2-
As you can see, neither removing nor adding the account works, and its not listed in the users output. I'm not certain how this situation was created, but it appears the user management functions of a model can be a bit flakey.
Changed in juju: | |
status: | Incomplete → Triaged |
milestone: | none → 2.1.0-beta1 |
Changed in juju: | |
milestone: | 2.1-beta1 → 2.1-beta2 |
Changed in juju: | |
milestone: | 2.1-beta2 → none |
Changed in juju: | |
milestone: | none → 2.1-rc1 |
Changed in juju: | |
assignee: | Alexis Bruemmer (alexis-bruemmer) → Horacio Durán (hduran-8) |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 2.1-beta4 → 2.1-rc1 |
Please take a look at this one, we would like to share controllers.
Here are the errors Chuck mentioned I was having with the login. I didn't know the password that Juju was looking for so I tried several different ones and never got it to work:
mbruzek@warhorse:~$ juju list-controllers
Use --refresh to see the latest information.
CONTROLLER MODEL USER ACCESS CLOUD/REGION MODELS MACHINES HA VERSION container- ci - - - - - (unknown)
amazon controller admin@local superuser aws/us-west-2 2 1 none 2.0-rc1
container-lab - mbruzek@local login - - - 2.0-rc1
containers* admin@local/
mbruzek@warhorse:~$ juju switch container-lab admin@local/ container- ci -> container-lab (controller)
containers:
mbruzek@warhorse:~$ juju status
ERROR no model in focus
Please use "juju models" to see models available to you.
You can set current model by running "juju switch"
or specify any other model on the command line using the "-m" flag.
mbruzek@warhorse:~$ juju list-models admin@local/ controller
please enter password for mbruzek@local on container-lab:
ERROR cannot list models: invalid entity name or password
mbruzek@warhorse:~$ juju list-models
please enter password for mbruzek@local on container-lab:
ERROR cannot list models: invalid entity name or password
mbruzek@warhorse:~$ juju switch amazon
container-lab (controller) -> amazon: