<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm trying the debug the following scenario:</div><div><br></div><div>My cluster setup is two AWS instances providing an elastic ip as an HA resource. I have written a custom resource script for managing that, the script passes all the tests specified in ocf-tester. It behaves properly in other test scenarios. </div>
<div><br></div><div>In this link[1] you can find the corosync configuration file of node A and the pacemaker configuration as well. The corosync configuration of the node B is reciprocal.</div><div><br></div><div>But I founding lots of behavior that I am not able to understand in the following situation:</div>
<div><br></div><div>1. Both nodes are up and node A has the Elastic IP</div><div>2. I turn off node A through AWS API.</div><div>3. After some time (around 2-3 mins) the Elastic IP moves to node B.</div><div><br></div><div>
The strange behavior starts when I try to bring the node A back to the cluster:</div><div><br></div><div>4. Node A is back with a different internal ip address.</div><div>5. I update the ip address in the A node: `crm configure edit` </div>
<div>6. I add the ip address of node A in node B: `crm configure edit` (deleting the old ip of node B is not possible).</div><div>7. I update the ip address in the corosync configuration of node A.</div><div>8. I restart corosync in node A.</div>
<div>9. IP migrates from node B to node A because node B appears offline to node A, this is because node A has not had its corosync config updated because I don't want to restart corosync on the resource that is providing the ip.</div>
<div>10. At this point node A only sees itself and node B only sees itself.</div><div><br></div><div>Here is the log files of both nodes[2].<br></div><div><br></div><div>How can I bring a node back without having it moving the IP address back? </div>
<div><br></div><div>Thanks in advance.</div><div><br></div><div>[1] <a href="https://gist.github.com/therobot/67bae18b5acb0ba78925">https://gist.github.com/therobot/67bae18b5acb0ba78925</a><br></div><div>[2] <a href="https://gist.github.com/therobot/ef85646d6e0092e494c4">https://gist.github.com/therobot/ef85646d6e0092e494c4</a></div>
<div><br></div><div><br></div><div><br></div><div><div dir="ltr">Jacobo García López de Araujo<div><a href="http://thebourbaki.com" target="_blank">http://thebourbaki.com</a> | <a href="http://twitter.com/clapkent" target="_blank">http://twitter.com/clapkent</a> <br>
</div></div></div>
</div>