Page MenuHomePhabricator

postgres-init cookbook does not successfully sync
Closed, ResolvedPublic

Description

This cookbook does not currently successfully reimage a host. pg_basebackup will fail without the postgres directory existing to back up to, and without the recovery file being written, the postgres replica that would start up had the backup succeeded would configure itself as a master and therefore would be unsuitable to replicate from the master.

Event Timeline

Change 666110 had a related patch set uploaded (by Hnowlan; owner: Hnowlan):
[operations/puppet@production] postgres: add script for automatic resyncing

https://gerrit.wikimedia.org/r/666110

Change 666113 had a related patch set uploaded (by Hnowlan; owner: Hnowlan):
[operations/cookbooks@master] postgres: use remote script on replica to resync

https://gerrit.wikimedia.org/r/666113

Change 666110 merged by Hnowlan:
[operations/puppet@production] postgres: add script for automatic resyncing

https://gerrit.wikimedia.org/r/666110

Change 666113 merged by jenkins-bot:

[operations/cookbooks@master] postgres: use remote script on replica to resync

https://gerrit.wikimedia.org/r/666113