summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobrelia@mirantis.com>2015-12-30 12:52:05 +0100
committerBogdan Dobrelya <bdobrelia@mirantis.com>2015-12-30 14:39:08 +0100
commitb8a554e5b936e3e0fffc23025200dd3fc43befa6 (patch)
tree85e42df7144e246137fac820b8ff0942019ad1e2 /README
parent29af23b74dd159ae44471d53bec50253cc5fbcb0 (diff)
downloadrabbitmq-server-git-b8a554e5b936e3e0fffc23025200dd3fc43befa6.tar.gz
Fix stop conditions for the rabbit OCF resource
* Fix the get_status() unexpectedly reports generic error instead of "not running" * Add proc_stop and proc_kill functions (TODO these shall go as external common ocf heplers, eventually) * Rework stop_server_process() - make it to return SUCCESS/ERROR as expected - grant the "rabbitmqctl stop" a graceful termintation window and only then ensure the beam process termination and pidfile removal as well - return the actual status with get_status() * Rework kill_rmq_and_remove_pid() - use proc_stop to try to kill by pgrp with -TERM, then -KILL, or by the beam process name match, if there is no PID. - make it to returns SUCCESS/ERROR * Fix action_stop() - fail early by the stop_server_process() results without additional rabbitmqctl invocations in the get_status() call - rework hard-coded sleep 10 to use the gracefull stop windows in the stop_server_process() instead - ensure the rabbit-start-time removal from CIB before to try to stop the server process - issue the "stop: action end" log record before the actual end * Add comments and make logs to be more informational Related Fuel bug https://bugs.launchpad.net/fuel/+bug/1529897 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com> Co-authored-by: Alex Schultz <aschultz@mirantis.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions