MAAS Region Controller fails to install using external postgres via debconf
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MAAS | Status tracked in 3.6 | |||||
3.5 |
Won't Fix
|
Low
|
Unassigned | |||
3.6 |
Triaged
|
Low
|
Unassigned |
Bug Description
O/S Information specific:
root@maas:~# uname -air
Linux maas 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
root@maas:~#
root@maas:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
root@maas:~#
The following debconf options have been set prior to an install:
dbconfig-common dbconfig-
dbconfig-common dbconfig-
dbconfig-common dbconfig-
dbconfig-common dbconfig-
dbconfig-common dbconfig-
maas-region-
maas-region-
maas-region-
maas-region-
maas-region-
maas-region-
maas-region-
maas-common maas-rack-
Expected to happen:
MaaS to fully install using the Postgres information supplied within debconf and setup the new database, without talking to the local Postgresql install.
Actually happened:
MaaS checks for a maas user and maasdb and resets the password on the remote Postgresql server, it then tries to talk to the Postgres install on the localhost
Setting up maas-region-
dbconfig-common: writing config to /etc/dbconfig-
Creating config file /etc/dbconfig-
creating postgres user maas: already exists.
resetting password: success.
creating database maasdb: already exists.
dbconfig-common: flushing administrative password
Traceback (most recent call last):
File "/usr/lib/
self.connect()
File "/usr/lib/
self.connection = self.get_
File "/usr/lib/
connection = Database.
File "/usr/lib/
conn = _connect(dsn, connection_
psycopg2.
FATAL: password authentication failed for user "maas"
Log file of the local postgres install:
root@maas:~# tail -F /var/log/
tail: cannot open '/var/log/
tail: '/var/log/
2017-02-09 16:51:30 UTC [20081-1] LOG: database system was shut down at 2017-02-09 16:51:29 UTC
2017-02-09 16:51:30 UTC [20081-2] LOG: MultiXact member wraparound protections are now enabled
2017-02-09 16:51:30 UTC [20080-1] LOG: database system is ready to accept connections
2017-02-09 16:51:30 UTC [20085-1] LOG: autovacuum launcher started
2017-02-09 16:51:30 UTC [20087-1] [unknown]@[unknown] LOG: incomplete startup packet
2017-02-09 16:51:46 UTC [20080-2] LOG: received fast shutdown request
2017-02-09 16:51:46 UTC [20080-3] LOG: aborting any active transactions
2017-02-09 16:51:46 UTC [20085-2] LOG: autovacuum launcher shutting down
2017-02-09 16:51:46 UTC [20082-1] LOG: shutting down
2017-02-09 16:51:46 UTC [20082-2] LOG: database system is shut down
2017-02-09 16:51:47 UTC [20776-1] LOG: database system was shut down at 2017-02-09 16:51:46 UTC
2017-02-09 16:51:47 UTC [20776-2] LOG: MultiXact member wraparound protections are now enabled
2017-02-09 16:51:47 UTC [20775-1] LOG: database system is ready to accept connections
2017-02-09 16:51:47 UTC [20780-1] LOG: autovacuum launcher started
2017-02-09 16:51:48 UTC [20787-1] [unknown]@[unknown] LOG: incomplete startup packet
2017-02-09 16:51:52 UTC [21093-1] maas@maasdb FATAL: password authentication failed for user "maas"
2017-02-09 16:51:52 UTC [21093-2] maas@maasdb DETAIL: Connection matched pg_hba.conf line 94: "host all all ::1/128 md5"
2017-02-09 16:51:52 UTC [21094-1] maas@maasdb FATAL: password authentication failed for user "maas"
2017-02-09 16:51:52 UTC [21094-2] maas@maasdb DETAIL: Connection matched pg_hba.conf line 94: "host all all ::1/128 md5"
MaaS version is: 2.1.3+bzr5573-
Changed in maas (Ubuntu): | |
status: | Incomplete → Triaged |
no longer affects: | maas (Ubuntu) |
Changed in maas: | |
milestone: | none → 2.2.0 |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in maas: | |
milestone: | 2.2.0 → 2.2.x |
Changed in maas: | |
milestone: | 2.2.x → 2.3.x |
Changed in maas: | |
milestone: | 2.3.x → none |
summary: |
- Maas Region Controller fails to install using external postgres via + MAAS Region Controller fails to install using external postgres via debconf |
Changed in maas: | |
importance: | Medium → Low |
milestone: | none → 3.4.0 |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Changed in maas: | |
milestone: | 3.4.x → 3.5.x |
Hi Dan,
Can you please provide exact instructions on how you set debconf options and how you proceed to run the install?
THanks.