9d6df5
From 16928cfc69136bc56b1574bee9966e0d5de73abd Mon Sep 17 00:00:00 2001
9d6df5
From: Ken Gaillot <kgaillot@redhat.com>
9d6df5
Date: Wed, 26 Jan 2022 09:15:43 -0600
9d6df5
Subject: [PATCH] Fix: controller: correctly match "node down" events
9d6df5
9d6df5
regression introduced in 2.1.2 by 03ce7376e
9d6df5
9d6df5
The symptom that led to this was that removing a remote node connection
9d6df5
resource would lead to the remote node getting fenced when the connection stop
9d6df5
was not recognized as an expected down event.
9d6df5
---
9d6df5
 daemons/controld/controld_te_events.c | 2 +-
9d6df5
 1 file changed, 1 insertion(+), 1 deletion(-)
9d6df5
9d6df5
diff --git a/daemons/controld/controld_te_events.c b/daemons/controld/controld_te_events.c
9d6df5
index 36fd832ba0..1fd7129922 100644
9d6df5
--- a/daemons/controld/controld_te_events.c
9d6df5
+++ b/daemons/controld/controld_te_events.c
9d6df5
@@ -304,7 +304,7 @@ match_down_event(const char *target)
9d6df5
              gIter2 = gIter2->next) {
9d6df5
 
9d6df5
             match = (crm_action_t*)gIter2->data;
9d6df5
-            if (pcmk_is_set(match->flags, pcmk__graph_action_confirmed)) {
9d6df5
+            if (pcmk_is_set(match->flags, pcmk__graph_action_executed)) {
9d6df5
                 xpath_ret = xpath_search(match->xml, xpath);
9d6df5
                 if (numXpathResults(xpath_ret) < 1) {
9d6df5
                     match = NULL;
9d6df5
-- 
9d6df5
2.27.0
9d6df5