Juju model exists in the controller but not visible in the output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
I faced an issue that my openstack model was removed but I can not create it again.
1) Model was successfully removed:
juju destroy-model --no-prompt --force --destroy-storage foundations-
2) The same model is attempted to be created:
$ juju add-model -c foundations-maas openstack maas_cloud
ERROR failed to create new model: model “openstack” for admin already exists (already exists)
But this models is not visible in the output:
juju models
Controller: foundations-maas
Model Cloud/Region Type Status Machines Cores Units Access Last connection
controller maas_cloud maas available 3 24 3 admin just now
cos microk8s_
metallb-system microk8s_
microk8s maas_cloud maas available 3 24 27 admin 1 hour ago
I have HA juju deployment on 3 nodes
juju --version 3.5.3-genericli
juju-controller 3.5/stable
To fix it database patching was needed:
juju:PRIMARY> db.models.
{ "acknowledged" : true, "deletedCount" : 1 }
juju:PRIMARY>
juju:PRIMARY>
juju:PRIMARY> db.modelEntityR
{ "acknowledged" : true, "deletedCount" : 1 }
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → Vitaly Antonenko (anvial) |
Changed in juju: | |
assignee: | Vitaly Antonenko (anvial) → nobody |
Seems to be related to this bug. Thanks for that workaround
https:/ /bugs.launchpad .net/juju/ +bug/2078459