-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use crm_node --partition to discover resources
During the promote action, we used to call crm_node --partition to find other existing nodes and compare LSNs to check if the current node to promote is the best one. If some node in the partition does not host one of the clone, we were failing the promotion because we couldn't check its LSN. The call of crm_node has been replaced by some computation on environment variables given during notify to find out which clones on what nodes are actually taking part of the PgSQL cluster. The node list is then passed to the promote action using a variable stored in a file localy (outside of the CIB to not break the transition). This should fix gh issue #9 for old stacks not supporting privte attributes.
- Loading branch information
Showing
1 changed file
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters