commit c041f6362e9e33e78e2645ae7c10f5aa2ad41874
Author: David Vossel <dvossel@redhat.com>
Date: Tue Oct 1 17:12:17 2013 -0500
Low: fencing: Do not broadcast suicide if the on action is being executed
(cherry picked from commit fd5d4e2f3b61a614f92781bd4280efe282bc142a)
diff --git a/fencing/commands.c b/fencing/commands.c
index 7d04952..909dc24 100644
--- a/fencing/commands.c
+++ b/fencing/commands.c
@@ -1352,7 +1352,7 @@ stonith_send_async_reply(async_command_t * cmd, const char *output, int rc, GPid
crm_str_eq(cmd->action, "list", TRUE) || crm_str_eq(cmd->action, "status", TRUE)) {
crm_trace("Never broadcast %s replies", cmd->action);
- } else if (!stand_alone && safe_str_eq(cmd->origin, cmd->victim)) {
+ } else if (!stand_alone && safe_str_eq(cmd->origin, cmd->victim) && safe_str_neq(cmd->action, "on")) {
crm_trace("Broadcast %s reply for %s", cmd->action, cmd->victim);
crm_xml_add(reply, F_SUBTYPE, "broadcast");
bcast = TRUE;