Whether this leaves MAAS unlinked to a DB, I’m not sure but I was able to login to the web gui. The command without the argument will automatically run through the admincreate script, unless switched off. I also noticed when trying to install 3.4 from deb, there is no command in the man pages for the offending argument. When I attempted to use the db name “maasdb” it errored out and said it already existed on a fresh attempt. Does 3.4 autocreate the postgresql during apt install of MAAS? I’m currently testing how it works if I manually upgrade postgresql to v14 and pre-create the DB. I’m hoping the MAAS install sees it and uses it by default with the db name “maasdb.”
The init command is just for snaps. If you use debs you can install components individually. If you simply install the maas package you’ll get postgres and it will be initialized automatically. In short, you don’t have to execute the init command at all
More trouble trying to get 3.7 up and running following the install document:
# maas status
usage: maas [-h] COMMAND ...
options:
-h, --help show this help message and exit
drill down:
COMMAND
login Log in to a remote API, and remember its description and credentials.
logout Log out of a remote API, purging any stored credentials.
list List remote APIs that have been logged-in to.
refresh Refresh the API descriptions of all profiles.
init Initialize controller.
apikey Used to manage a user's API keys. Shows existing keys unless --generate or --delete is passed.
configauth Configure external authentication.
config-tls Configure MAAS Region TLS.
config-vault Configure MAAS Region Vault integration.
msm Configure enrolment with a Site Manager instance
createadmin Create a MAAS administrator account.
changepassword
Change a MAAS user's password.
https://maas.io/
argument COMMAND: invalid choice: 'status' (choose from 'login', 'logout', 'list', 'refresh', 'init', 'apikey', 'configauth', 'config-tls', 'config-vault', 'msm', 'createadmin', 'changepassword')
and this:
# maas createadmin --username=first.last --email=first.last@example.com
usage: maas [-h] COMMAND ...
options:
-h, --help show this help message and exit
drill down:
COMMAND
login Log in to a remote API, and remember its description and credentials.
logout Log out of a remote API, purging any stored credentials.
list List remote APIs that have been logged-in to.
refresh Refresh the API descriptions of all profiles.
init Initialize controller.
apikey Used to manage a user's API keys. Shows existing keys unless --generate or --delete is passed.
configauth Configure external authentication.
config-tls Configure MAAS Region TLS.
config-vault Configure MAAS Region Vault integration.
msm Configure enrolment with a Site Manager instance
createadmin Create a MAAS administrator account.
changepassword
Change a MAAS user's password.
https://maas.io/
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user "maas"
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user "maas"
Having learned from my past mistake, I thought maybe these commands were only necessary for a snap install, so I tried navigating to http://[server.ip]:5240/maas. The good new is nginx is listening on that port. The bad news is that the page was not found.