Closed marceloneppel closed 8 months ago
curl -X POST {ip-of-primary-unit}:8008/switchover -d '{"leader": "primary-unit-name-replacing-the-slash-to-hyphen", "candidate": "sync_standby-unit-name-replacing-the-slash-to-hyphen"}'
No error (stanza should be initialised correctly).
Same issue as https://github.com/canonical/postgresql-k8s-operator/issues/370.
2024-01-24 11:12:08 ERROR unit.postgresql/5.juju-log server.go:325 s3-parameters:14: ERROR: [056]: unable to find primary cluster - cannot proceed HINT: are all available clusters in recovery?
Charm revision: 331
https://pastebin.ubuntu.com/p/PDP6zPP3Fg/
Matrix discussion.
https://warthogs.atlassian.net/browse/DPE-3380
Revision 367 from the 14/edge channel contains the fix.
14/edge
Steps to reproduce
curl -X POST {ip-of-primary-unit}:8008/switchover -d '{"leader": "primary-unit-name-replacing-the-slash-to-hyphen", "candidate": "sync_standby-unit-name-replacing-the-slash-to-hyphen"}'
.Expected behavior
No error (stanza should be initialised correctly).
Actual behavior
Same issue as https://github.com/canonical/postgresql-k8s-operator/issues/370.
Versions
Charm revision: 331
Log output
https://pastebin.ubuntu.com/p/PDP6zPP3Fg/
Additional context
Matrix discussion.