W/o this patch, the race condition is possible
when there is no running rabbit nodes/resource
master. The rabbit nodes will start/stop in an
endless loop as a result introducing full downtime
for AMQP cluster and cloud control plane.
The solution is:
* On post-start/post-promote notify, do nothing, if
either of the following is a true:
- there is no rabbit resources running or no master
- the list of rabbit resources being started/promoted
reported empty
* For such cases, do not report resource failure and delegate
recovery, if needed, to the "running out of the cluster"
monitor's logic.
* Additionally, report about a last man standing when
there is no running rabbit resources around.
Reviewed: https:/ /review. openstack. org/220103 /git.openstack. org/cgit/ stackforge/ fuel-library/ commit/ ?id=403b28c2aff 8aa9f37125d3ff1 ac09861990da7e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 403b28c2aff8aa9 f37125d3ff1ac09 861990da7e
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Sep 3 13:53:13 2015 +0200
Detect a last man standing for rabbit OCF agent
W/o this patch, the race condition is possible
when there is no running rabbit nodes/resource
master. The rabbit nodes will start/stop in an
endless loop as a result introducing full downtime
for AMQP cluster and cloud control plane.
The solution is: post-promote notify, do nothing, if
* On post-start/
either of the following is a true:
- there is no rabbit resources running or no master
- the list of rabbit resources being started/promoted
reported empty
* For such cases, do not report resource failure and delegate
recovery, if needed, to the "running out of the cluster"
monitor's logic.
* Additionally, report about a last man standing when
there is no running rabbit resources around.
Closes-bug: #1491306
Change-Id: If1c62fac26b634 10636413c49fce5 5c35e53dc5f
Signed-off-by: Bogdan Dobrelya <email address hidden>