Blame SOURCES/025-clear-attrs.patch

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