MAAS 2.8 snap test-db install fails when running as (default) root in a container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Björn Tillenius |
Bug Description
I created a lxd container by copying my MAAS template container (which already has the KVM bridge and postgres running locally, but no MAAS).
I ran snap install maas --channel=
I ran snap install maas-test-db -- again, seemed to complete with no issue.
Attempted to double-check with maas-test-db.psql, got the following error:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/snap/
Did an su - postgres, attempted maas-test-db.psql again, got the following error:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/snap/
This may be related to how I'm running the commands (as root in a container), rather than an actual bug, but in any case, at the very least, the documentation may need to be updated to explain the correct conditions for installation to succeed.
Can you please post the output of `journalctl -ef -u snap.maas- test-db. postgres` where this is happening?
FTR, running maas-test-db.psql as root is correct.
I tried to reproduce the issue in a clean bionic container, installing maas-test-db from 2.8/stable worked for me