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