Seu erro é
Database.connect(**conn_params)\n File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect\n connection_factory=connection_factory, async=asyn
c)\ndjango.db.utils.OperationalError: could not connect to server: Connection refused\n\tIs the server running on host "localhost" (::1) and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to serve
r: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n\n'}
Parece que algo está acontecendo durante a instalação do MAAS. Você pode verificar se o MAAS foi instalado?