ERROR some models are no longer visible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Anastasia |
Bug Description
Version: Juju 2.5-beta1-
# Expected behavior:
I find it useful to destroy and recreate a model when I'm doing testing, and I typically squash the two commands on one line. This has worked fine until I switched to the edge channel
$ juju destroy-model default -y && juju add-model default
Destroying model
Waiting on model to be removed...
Waiting on model to be removed...
Model destroyed.
Uploading credential 'localhost/
ERROR some models are no longer visible
The default model is destroyed, but no new model has been created.
It seems like a race condition; if I run the two commands separately, with a wait between them, it works as expected.
# This will fail with the same error above
juju destroy-model default -y
juju add-model default
# This works as expected
juju destroy-model default -y
sleep 5
juju add-model default
description: | updated |
Changed in juju: | |
assignee: | nobody → Anastasia (anastasia-macmood) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.5-beta1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
This looks like a race in the uploading of the credentials where it is trying to update the ones that are there. The existing default model is in the process of being removed, so is probably marked as dead, and the credential update isn't allowing for the dead model, or it is iterating over them and the model is removed from underneath it by the undertaker.