You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Install postgresql `14/stable`, pgbouncer `1/edge` or `1/stable` with the default settings and relate them with a single Juju Terraform run.
2. Install maas-region latest/edge charm and relate it to pgbouncer.
Expected behavior
The maas-region charm receives the connection details through the dabatase relation and tries to run maas init region+rack --database-uri postgres://relation_id_9:HZjrAAmo5U0i37DVwUEba7FB@localhost:6432/maas_region_db. Details are coming through the relation. MAAS is initialized successfully.
Actual behavior
MAAS fails to initialize since when it receives the connection details and tries to authenticate a refusal error occurs (see logs).
For what it's worth, all charms are installed in the same machine, so it may relate to: #206. On the other hand, postgresql and pgbouncer charms are using different ports so I am not sure.
Steps to reproduce
Expected behavior
The maas-region charm receives the connection details through the
dabatase
relation and tries to runmaas init region+rack --database-uri postgres://relation_id_9:HZjrAAmo5U0i37DVwUEba7FB@localhost:6432/maas_region_db
. Details are coming through the relation. MAAS is initialized successfully.Actual behavior
MAAS fails to initialize since when it receives the connection details and tries to authenticate a refusal error occurs (see logs).
Versions
Operating system: Ubuntu 22.04.4 LTS
Juju CLI: 3.4.3-genericlinux-amd64
Juju agent: 3.4.3
postgresql charm revision: 363
pgbouncer charm revision: 203
LXD: 5.0.3
Log output
Additional context
After 5-10 minutes, if operation is manually performed, the connection is working and MAAS is initialized
The text was updated successfully, but these errors were encountered: