MaaS DB connectivity issues

Hi Team,

I have an all in one Maas 3.2.x setup using apt. While working on hardening of the OS, removal of a package resulted in the purge of maas related packages maas-common maas-rack-controller maas maas-region-controller maas-region-api. Database was not touched. In order to fix the case, I reinstalled the purged packages and made sure maasdb user has the right password set (the one in /etc/maas/regiond.conf).

maas-regiond service is running, however logs shows database connectivity issues:

Error starting: Connection to database cannot be established.
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/provisioningserver/server.py”, line 90, in runService
UnixApplicationRunner(config).run()
File “/usr/lib/python3/dist-packages/twisted/application/app.py”, line 381, in run
self.application = self.createOrGetApplication()
File “/usr/lib/python3/dist-packages/twisted/application/app.py”, line 448, in createOrGetApplication
ser = plg.makeService(self.config.subOptions)
File “/usr/lib/python3/dist-packages/maasserver/plugin.py”, line 219, in makeService
self._ensureConnection()
— —
File “/usr/lib/python3/dist-packages/maasserver/plugin.py”, line 185, in _ensureConnection
connection.ensure_connection()
File “/usr/lib/python3/dist-packages/django/db/backends/dummy/base.py”, line 20, in complain
raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

I have confirmed that the db details in /etc/maas/regiond.conf is correct. The same details can be seen when running command sudo maas-region diffsettings | grep DATABASES.

Right now nothing works, because region controller cannot establish db connection. Appreciate any lead on this.

Thanks!

Hi there! Are you able to upgrade to 3.4.x or 3.5.x? 3.2.x is no longer a supported version.