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