I ran into this issue (FATAL:  password authentication failed for user
"maas") by running the command 'maas-region createadmin --username admin
--password kNab4Q9fSa --email [email protected]' today as
well. I solved the problem in the following way.

1, confirm database_pass is wQ3fxcdSH1aI

root@maas-ha-2:~# grep -r 'pass' /etc/maas/regiond.conf
database_pass: wQ3fxcdSH1aI

2, change md5 into trust temporarily, then restart postgresql by 'systemctl 
restart pacemaker'
/etc/postgresql/9.5/main/pg_hba.conf
local   all             all                                    trust

3, change the password of the user maas to wQ3fxcdSH1aI

sudo su - maas
psql -d maasdb -U maas
maasdb=> alter user maas with password 'wQ3fxcdSH1aI';

4, ok

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1281758

Title:
  re-installing maas-region-controller fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1281758/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to