W/o this fix the situation is possible when
rabbit OCF returns OCF_NOT_RUNNING in the hope of
future restart of the resource by pacemaker.
But in fact, pacemaker will not trigger restart action
if monitor returns "not running". This is an issue
as we want resource restarted.
The solution is to return OCF_ERR_GENERIC instead of
OCF_NOT_RUNNING when we expect the resource to be restarted
(which is action stop plus action start).
Reviewed: https:/ /review. openstack. org/199059 /git.openstack. org/cgit/ stackforge/ fuel-library/ commit/ ?id=5097d94f5d5 6fd6126ca9b7c12 27961536c94399
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5097d94f5d56fd6 126ca9b7c122796 1536c94399
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Jul 7 13:32:25 2015 +0200
Fix error return codes for rabbit OCF
W/o this fix the situation is possible when
rabbit OCF returns OCF_NOT_RUNNING in the hope of
future restart of the resource by pacemaker.
But in fact, pacemaker will not trigger restart action
if monitor returns "not running". This is an issue
as we want resource restarted.
The solution is to return OCF_ERR_GENERIC instead of
OCF_NOT_RUNNING when we expect the resource to be restarted
(which is action stop plus action start).
Closes-bug: #1472230
Change-Id: I10c6e43d92cb23 596636d86932674 b36864d1595
Signed-off-by: Bogdan Dobrelya <email address hidden>