Re: JAAS confusion

2017-10-09 Thread John Meinel
The 6 accessible models is gone in 2.3 (IIRC), because it was actually just
reflecting some locally cached information about model numbers, but wasn't
actually being kept up to date properly.

I think the inability to remove a model that is half-dead might be fixed
already in 2.3 but has to do with an issue around 2 critical documents that
define a model, and one of them has been removed but not the other, which
leads to a bunch of code that gets a different view of whether the model
exists or not.

A different explanation could be that you create a model with the same name
with a different client and thus its actually the underlying UUID doesn't
exist, but there is a model collision. (Your local client new a model named
'mymodel' with UUID 1234, but you had a different client that deleted that
model and created a new 'mymodel' with UUID 3456, but when you're trying to
'juju destroy-model' we are using the 1234 UUID again. I'm brainstorming,
though, and wouldn't say concretely that it is definitely true.)

John
=:->


On Mon, Oct 9, 2017 at 9:42 PM, Tom Barber  wrote:

> Hello folks
>
> Couple of random questions:
>
> juju destroy-model mymodel
> WARNING! This command will destroy the "mymodel" model.
> This includes all machines, applications, data and other resources.
>
> Continue [y/N]? y
> ERROR cannot connect to API: model "mymodel" has been removed from the
> controller, run 'juju models' and switch to one of them.
> There are 6 accessible models on controller "jaas".
>
> juju models
> Controller: jaas
>
> Model  Cloud/Region   Status Machines  Cores  Access  Last
> connection
> mymodelaws/eu-west-1  available 5  9  -   never
> connected
>
>
>
> 2 things in this output, firstly how do I delete the model that seems
> stuck?
>
> secondly what is the 6 accessible models bit talking about?
>
> Thanks
>
> Tom
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


JAAS confusion

2017-10-09 Thread Tom Barber
Hello folks

Couple of random questions:

juju destroy-model mymodel
WARNING! This command will destroy the "mymodel" model.
This includes all machines, applications, data and other resources.

Continue [y/N]? y
ERROR cannot connect to API: model "mymodel" has been removed from the
controller, run 'juju models' and switch to one of them.
There are 6 accessible models on controller "jaas".

juju models
Controller: jaas

Model  Cloud/Region   Status Machines  Cores  Access  Last
connection
mymodelaws/eu-west-1  available 5  9  -   never
connected



2 things in this output, firstly how do I delete the model that seems stuck?

secondly what is the 6 accessible models bit talking about?

Thanks

Tom
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju