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