The action_stop may sometimes stop the rabbitmq-server gracefully
by the PID, but leave unresponsive beam.smp processes running and
spoiling rabbits. Those shall be stopped as well. The solution is:
- make proc_stop() to accept a pid=none to use a name matching instead
- make kill_rmq_and_remove_pid() to stop by the beam process matching as well
- fix stop_server_process() to ensure there is no beam process left running
Reviewed: https:/ /review. openstack. org/276154 /git.openstack. org/cgit/ openstack/ fuel-library/ commit/ ?id=7fa3440ad3b 03c0b6242fc6f89 2f3a0105a0c85b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7fa3440ad3b03c0 b6242fc6f892f3a 0105a0c85b
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Feb 4 11:57:28 2016 +0100
Fix action_stop for the rabbit OCF
The action_stop may sometimes stop the rabbitmq-server gracefully and_remove_ pid() to stop by the beam process matching as well process( ) to ensure there is no beam process left running
by the PID, but leave unresponsive beam.smp processes running and
spoiling rabbits. Those shall be stopped as well. The solution is:
- make proc_stop() to accept a pid=none to use a name matching instead
- make kill_rmq_
- fix stop_server_
Closes-bug: #1541029
Change-Id: Ib9669d15bb714b e8a88fd65d7f181 5173da788d3
Signed-off-by: Bogdan Dobrelya <email address hidden>