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

Hi juju team, I faced an issue that my openstack model was removed but I can not create it again:

$ 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

I have HA juju deployment on 3 nodes

juju --version 3.5.3-genericlinux-amd64

App Version Status Scale Charm Channel Rev Exposed Message controller active 3 juju-controller 3.5/stable 105 no

I assume this model is somehow stack in the database. Any suggestion how to remove this model?

Did you have any errors when removing the original model? was it removed juju destroy-model, and which flags?

This is indeed a problem, could you please file a bug for it so we can keep track and investigate more deeply?

I can contact you directly to debug and manually clean up the DB and unblock your situation.

Database patching has been performed. New bug was opened Bug #2082339 “Juju model exists in the controller but not visibl...” : Bugs : Canonical Juju