Hi,<br><br>In the typical multi-state resource agent, it changes master score on demote or promote. Each change in master score triggers PE calculation. Suppose the following scenario.<br>1. Pacemaker initiates demote/promote<br>
2. demote is issued and lower the master score on the demoted node.<br>3. promote is issued and increases the master score on the promoted node.<br><br>The PE calculation can be kicked off between 2 and 3, then the pacemaker will see two slaves in the moment. Depending on the master score it sees at the moment, the pacemaker may promote the old master.<br>
<br>I think the pacemaker should handle demote/promote atomically, meaning it should prevent any PE calculation between demote and promote.<br><br>Thanks<br>hj<br>