Comment 12 for bug 1602468

Revision history for this message
Andres Rodriguez (andreserl) wrote :

After looking at the scripts, I believe the issue is that you are trying to create a user before MAAS is fully installed. The configure_maas.py script is checking for the 'maas' metapackage. However, it is not really checking for its proper status, because the package should be in 'unpacked' status and not really installed. That said, since it is a metapackage, it will install only dependencies which may mean that maas-region-controller package is already installed.

maas-region-controller package is the one that installs and configures the DB. You script should do better checking:

1. Check for maas-region-controller status:

ubuntu@maas00:~$ dpkg-query --show --showformat='${db:Status-Status}\n' maas-region-controller
installed

2. Ensure that the region and postgresql are actually up and running (by checking the daemons).

Provided that this is CI script, marking this bug as invalid.