cannot destroy controller with other superuser's model
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
I had a controller in gce with an admin. I created additional users to test a feature. I then filled the disk and needed to remove the controller. As the admin/superuser of the controller I expected to be able to destroy it without issue. Instead I was blocked on another superuser's model (rick) and had to grant myself access, destroy that model, and only then could I destroy the controller.
CLI log of what was going on below:
juju models
Controller: jujushell
Model Cloud/Region Status Machines Cores Access Last connection
controller* google/us-east1 available 1 4 admin just now
rick/qa-allowed2 google/us-east1 available 0 - - never connected
juju destroy-controller jujushell --destroy-
WARNING! This command will destroy the "jujushell" controller.
This includes all machines, applications, data and other resources.
Continue? (y/N):y
ERROR model jujushell:
juju destroy-model rick/qa-allowed2
WARNING! This command will destroy the "rick/qa-allowed2" model.
This includes all machines, applications, data and other resources.
Continue [y/N]? y
ERROR permission denied (unauthorized access)
juju grant admin admin rick/qa-allowed2
juju destroy-controller jujushell --destroy-
WARNING! This command will destroy the "jujushell" controller.
This includes all machines, applications, data and other resources.
Continue? (y/N):y
ERROR model jujushell:
juju destroy-model rick/qa-allowed2
WARNING! This command will destroy the "rick/qa-allowed2" model.
This includes all machines, applications, data and other resources.
Continue [y/N]? y
Destroying model
Waiting on model to be removed...
Waiting on model to be removed...
Model destroyed.
juju destroy-controller --destroy-
WARNING! This command will destroy the "jujushell" controller.
This includes all machines, applications, data and other resources.
Continue? (y/N):y
Destroying controller
Waiting for hosted model resources to be reclaimed
All hosted models reclaimed, cleaning up controller machines
@Richard Harding,
What Juju version did you use? Model listing/discovery has been changed in from 2.3, I *believe*. I wonder if it is a new and introduced issue or whether it is an existing bug...