cannot destroy controller with other superuser's model

Bug #1744081 reported by Richard Harding
6
This bug affects 1 person
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-all-models
WARNING! This command will destroy the "jujushell" controller.
This includes all machines, applications, data and other resources.

Continue? (y/N):y
ERROR model jujushell:admin/qa-allowed2 not found

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-all-models
WARNING! This command will destroy the "jujushell" controller.
This includes all machines, applications, data and other resources.

Continue? (y/N):y
ERROR model jujushell:admin/qa-allowed2 not found

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-all-models jujushell
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

Revision history for this message
Anastasia (anastasia-macmood) wrote :

@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...

Changed in juju:
status: New → Incomplete
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Spoke off-line and we'd need to try all versions of Juju as this environment was destroyed. Potentially, this could be happening in all supported Juju 2.x...

Changed in juju:
status: Incomplete → Triaged
importance: Undecided → High
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

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

Changed in juju:
importance: High → Low
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.