juju 2.0-beta-1
When attempting to kill a controller listed in `juju list-controllers` - a controller showed up which was shared with me by a colleague from the new juju model sharing feature.
When I attempted to kill this controller however, things didn't go so swimmingly
ubuntu@dev:~$ juju kill-controller mbruzek
ERROR "mbruzek" is not a controller; use juju model destroy to destroy it
ubuntu@dev:~$ juju model destroy mbruzek
ERROR unrecognized command: juju model
The help output seems to want to read `juju destroy-model mbruzek` But that didn't yield' good results either
ubuntu@dev:~$ juju destroy-model mbruzek
ERROR cannot read model info: model "amazon:mbruzek" not found
ubuntu@dev:~$ juju destroy-model mbruzek:mbruzek
WARNING! This command will destroy the "mbruzek" model.
This includes all machines, services, data and other resources.
Continue [y/N]? y
ERROR cannot connect to API: refreshing models: current account for controller mbruzek not found
The controller is long since gone, and i'm unable to forcibly remove this model from my workspace. To fully remove it i had to go into the juju config innards, and remove it from the cache.yaml file.
Seems like we may need to add some cleanup or kill-model should be a thing to forcibly remove these crufty bits.
I can correct the suggestion to use "juju model destroy" to reference the real command, "juju destroy-model".
I agree that we need a mechanism for cleaning up the cache file. I have run into this issue myself a few times. I believe there was discussion about this before, but I don't know that any plans were actually made around it.