From 01b463bd715d48dde5bf76ca3a2e78e31f0ffaa1 Mon Sep 17 00:00:00 2001 From: Ken Gaillot Date: Tue, 21 Jan 2020 17:25:57 -0600 Subject: [PATCH] Fix: controller: clear leaving node's transient attributes even if there is no DC --- daemons/controld/controld_callbacks.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/daemons/controld/controld_callbacks.c b/daemons/controld/controld_callbacks.c index f7e3db2..21f831a 100644 --- a/daemons/controld/controld_callbacks.c +++ b/daemons/controld/controld_callbacks.c @@ -1,5 +1,5 @@ /* - * Copyright 2004-2019 the Pacemaker project contributors + * Copyright 2004-2020 the Pacemaker project contributors * * The version control history for this file may have further details. * @@ -205,7 +205,11 @@ peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *d cib_scope_local); } - } else if(AM_I_DC) { + } else if (AM_I_DC || (fsa_our_dc == NULL)) { + /* This only needs to be done once, so normally the DC should do + * it. However if there is no DC, every node must do it, since + * there is no other way to ensure some one node does it. + */ if (appeared) { te_trigger_stonith_history_sync(FALSE); } else { -- 1.8.3.1