Comment 8 for bug 1472230

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/199059
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=5097d94f5d56fd6126ca9b7c1227961536c94399
Submitter: Jenkins
Branch: master

commit 5097d94f5d56fd6126ca9b7c1227961536c94399
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: I10c6e43d92cb23596636d86932674b36864d1595
    Signed-off-by: Bogdan Dobrelya <email address hidden>