Hi All,
I’m having problems with install for the proof-of-concept scenario, with all MAAS components installed on a single host.
I’m getting stuck when I attempt to initial maas in new Ubuntu Environment and 3.2 fresh install.
Any ideas? I feel there is a step missing here.
Command:
sudo snap install --channel=3.2/beta maas
sudo snap install maas maas-test-db
sudo maas init region+rack --database-uri maas-test-db:/// **** FAILS HERE
snap list
core18 20220309 2344 latest/stable canonical✓ base
core20 20220318 1405 latest/stable canonical✓ base
lxd 4.0.9-8e2046b 22753 4.0/stable/… canonical✓ -
maas 3.2.0~beta1-11298-g.b74133ead 19262 3.2/beta canonical✓ -
maas-cli 0.6.5 13 latest/stable canonical✓ -
maas-test-db 12.4-22-g.aed1dfe 91 3.1/stable canonical✓ -
Confirm that the DB is running:
Command
maas-test-db.psql
\l
maasdb=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------±---------±---------±--------±------±----------------------
maasdb | maas | UTF8 | C | C |
postgres | postgres | UTF8 | C | C |
template0 | postgres | UTF8 | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
Problems start here, all commands fail, never prompts me for a MAAS URL:
Command
sudo maas init region+rack --database-uri maas-test-db:///
OR
sudo maas init region+rack --database-uri maas-test-db:-#,
Error Message —>
usage: maas [-h] COMMAND …
optional arguments:
-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.
createadmin Create a MAAS administrator account.
changepassword
Change a MAAS user’s password.
unrecognized arguments: region+rack --database-uri maas-test-db:///
command
sudo maas init
Configuring authentication
No such group: maas
No such group: maas