diff options
| author | Bogdan Dobrelya <bdobrelia@mirantis.com> | 2016-04-20 14:02:07 +0200 |
|---|---|---|
| committer | Bogdan Dobrelya <bdobrelia@mirantis.com> | 2016-04-20 14:02:07 +0200 |
| commit | bc7b5c667a22ea3fa9e60b5fffd48756b27de843 (patch) | |
| tree | ba823a3a2c5c48de8fd23d3eee71657fa4e4d25b | |
| parent | 91c668480ca95a5ae19c86cec20cd4a1ec4f3afe (diff) | |
| download | rabbitmq-server-git-bc7b5c667a22ea3fa9e60b5fffd48756b27de843.tar.gz | |
Stop process when rabbit is running but is not connected to master.
It's should goes down due to avoid split brain.
Related Fuel bug: https://bugs.launchpad.net/fuel/+bug/1541471
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Co-authored-by: Maciej Relewicz <mrelewicz@mirantis.com>
| -rwxr-xr-x | scripts/rabbitmq-server-ha.ocf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/rabbitmq-server-ha.ocf b/scripts/rabbitmq-server-ha.ocf index 301f7a1fc7..06eeb50837 100755 --- a/scripts/rabbitmq-server-ha.ocf +++ b/scripts/rabbitmq-server-ha.ocf @@ -1463,6 +1463,7 @@ get_monitor() { # Rabbit is running but is not connected to master # Failing to avoid split brain ocf_log err "${LH} rabbit node is running out of the cluster" + stop_server_process rc=$OCF_ERR_GENERIC fi fi |
