Code review comment for lp:~sajoupa/landscape-charm/op-framework-db-connect-to-primary

Revision history for this message
Laurent Sesquès (sajoupa) wrote :

The current version of the charm fails to deploy in CI and staging with multiple postgresql units, because it can't update the DB schema.
This is because unit_data["host"] can return the IP of any postgresql unit, including the secondary, which is read-only.
This commit will ensure that landscape-server connects to the primary.

« Back to merge proposal