new primary wrongfully updates replication password on leadership change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
New
|
Undecided
|
Unassigned |
Bug Description
postgres unit leadership changed after a juju controller upgrade.
The new primary updated "_juju_repl" user password (aka replication_
It was fixed by applying replication_
afaiu :
{
from juju logs : https:/
"Invoking reactive handler: reactive/
updates the replication password and breaks the replica.
It shouldn't (there is already a password) but _juju_repl user pw is not matched.
Either because it's not an entry in "client_passwords" (but an entry on it's own https:/
and/or because replication username is hardcoded here
https:/
to a different value than replication_
https:/
}
by "but _juju_repl user pw is not matched." I mean /git.launchpad. net/postgresql- charm/tree/ reactive/ postgresql/ client. py#n52
https:/
appears to set the password again failing to see it already exists