Comment 10 for bug 1396946

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

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

commit ed66a433eb2e3dacfc8043afe35357158f964310
Author: Vladimir Kuklin <email address hidden>
Date: Mon Dec 8 11:18:07 2014 +0300

    Fixes for rabbit OCF logic

    W/o this fix,
    * forget_cluster_node command could take a lot of
      the time (and even out of the time given to post-stop notify event)
      if rabbit node is under heavy load.
    * It is also possible that all
      rabbitmq resources could persist as a slaves and there won't be
      any master elected.
    * Sometimes, join_cluster could take quite a long of a time. If it exceeded,
      the node will enter into join-wait-reset loop for ever.

    The solution includes:
    * Disconnect the node being unjoined forcibly from
      the every node issuing the forget action. That would make the forget
      action an instant and would ensure the node will be unjoined and
      reset w/o any issues.
    * Increase action start timeout even more and increase minimal value
      for command timeout as well.
    * Add info messages about timeouts given for commands execution
    * Fix missing OCF_FAILED_MASTER status processing for events and actions
    * Fix promote/demote/notify actions - return OCF_FAILED_MASTER then required
    * Fix reset_mnesia() procedure and logging prefixes for it
    * Replace detached stop_app call to timeout wrapper in stop_rmq_server_app()
      and stop_server_process(). Del del OCF_RESKEY_shutdown_time (unneeded).
    * Fix exit code for start_rmq_server_app()
    * Fix missing return for jjj_join
    * Fix my_host return codes to differ from OCF_ERR_GENERIC
    * Fix missing local declarations rc var
    * Fix missing rc checks for stop_rmq_server_app() and some other functions
    * Add some missing ocf_run wrappers
    * Fix shutdown/startup logs redirection

    Related-bug: #1396946

    Change-Id: I951825badb712c5575d469403cf65bf26713aff0
    Signed-off-by: Bogdan Dobrelya <email address hidden>