Closed skatsaounis closed 3 months ago
For what it's worth, all charms are installed in the same machine, so it may relate to: https://github.com/canonical/pgbouncer-operator/issues/206. On the other hand, postgresql and pgbouncer charms are using different ports so I am not sure.
Dear @skatsaounis , it is an provisional update, @dragomirp is investigating this issue on our side.
Hi, @skatsaounis, latest 1/edge
(rev. 232) should fix the issue.
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