Add rabbit OCF functions to get pacemaker node names
W/o this fix, the failover time was longer than expected
as rabbit nodes was able to query corosync nodes left the
cluster and also try to join them by rabbit cluster ending
up being reset and rejoin alive nodes later.
1) Add functions:
a) to get all alive nodes in the partition
b) to get all nodes
This fixes get_monitor behaviour so that it ignores
attributes for dead nodes as crm_node behaviour
changed with upgrade of pacemaker. So rabbit nodes will
never try to join the dead ones.
2) Fix bash scopes for local variables
Minor change removing unexcpeted behavior when local variable
impacts global scope.
Reviewed: https:/ /review. openstack. org/185397 /git.openstack. org/cgit/ stackforge/ fuel-library/ commit/ ?id=152303c7e74 1861bbcfd3c3165 be3d27107d6b38
Committed: https:/
Submitter: Jenkins
Branch: master
commit 152303c7e741861 bbcfd3c3165be3d 27107d6b38
Author: Bogdan Dobrelya <email address hidden>
Date: Mon May 25 15:57:39 2015 +0200
Add rabbit OCF functions to get pacemaker node names
W/o this fix, the failover time was longer than expected
as rabbit nodes was able to query corosync nodes left the
cluster and also try to join them by rabbit cluster ending
up being reset and rejoin alive nodes later.
1) Add functions:
a) to get all alive nodes in the partition
b) to get all nodes
This fixes get_monitor behaviour so that it ignores
attributes for dead nodes as crm_node behaviour
changed with upgrade of pacemaker. So rabbit nodes will
never try to join the dead ones.
2) Fix bash scopes for local variables
Minor change removing unexcpeted behavior when local variable
impacts global scope.
Related-bug: #1436812
Change-Id: I89b716b4cd0075 72bb6832365d442 4669921f057
Signed-off-by: Bogdan Dobrelya <email address hidden>