Can't re-create a model
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Triaged
|
Medium
|
Unassigned |
Bug Description
If I create a model, then destroy the model, I can't re-create a model by the same name.
Steps to reproduce:
$ juju create-model bundle-test
... deploy some things ...
$ juju destroy-model bundle-test --yes
then I get into this strange state:
$ juju create-model bundle-test
ERROR failed to create new environment: environment "bundle-test" for admin@local already exists
$ juju destroy-model bundle-test
ERROR cannot read environment info: environment "bundle-test" not found
$ juju list-models
NAME OWNER LAST CONNECTION
lxd admin@local just now
bundle-test admin@local 3 minutes ago
This is with recent master, 2.0-alpha1-
Most likely this is due to the undertaker behavior which will keep environment data around for some period of time.