Juju model exists in the controller but not visible in the output

Bug #2082339 reported by Dmytro Kazantsev
8
This bug affects 1 person
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-maas:openstack

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_cloud/localhost kubernetes available 0 - 8 admin 1 hour ago
metallb-system microk8s_cloud/localhost kubernetes available 0 - 1 admin 1 hour ago
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-genericlinux-amd64

juju-controller 3.5/stable

To fix it database patching was needed:

juju:PRIMARY> db.models.deleteOne({"_id":"54416dea-d783-433f-8f6a-7f015daf0cd4"})
{ "acknowledged" : true, "deletedCount" : 1 }
juju:PRIMARY>
juju:PRIMARY>
juju:PRIMARY> db.modelEntityRefs.deleteOne({"_id":"54416dea-d783-433f-8f6a-7f015daf0cd4"})
{ "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
Revision history for this message
Bartosz Woronicz (mastier1) wrote :

Seems to be related to this bug. Thanks for that workaround

https://bugs.launchpad.net/juju/+bug/2078459

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.