list-models sometimes errors after a migration (before model has been removed)
Bug #1666660 reported by
Christopher Lee
This bug report is a duplicate of:
Bug #1613960: list-models can show a model that was supposed to have been deleted.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Menno Finlay-Smits |
Bug Description
After a migration the test runs 'list-models' a number of times to wait until the migrated model is removed from the model list of the source controller.
Sometimes this command can error with this message:
09:44:52 ERROR cmd supercommand.go:458 cannot get model details: getting model 7f5f7a08-
8d494dfdb4d ("super-
This can happen for several seconds before the model is no longer listed (and that error is not displayed).
This can be confusing to a user because as far as they are concerned the model has been migrated away from this controller.
To post a comment you must log in.
This is likely to be because documents related to the document are in the process of being removed but the model document (the last thing to go) is still there. The API called by list-models is seeing the model document but then fails because it can't find out more.