Package: pacemaker / 2.1.5-1+deb12u1

Fix-scheduler-handle-cleaned-migrate_from-history-correct.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Ken Gaillot <kgaillot@redhat.com>
Date: Wed, 1 Feb 2023 17:12:13 -0600
Subject: Fix: scheduler: handle cleaned migrate_from history correctly

Fixes T623
---
 lib/pengine/unpack.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/pengine/unpack.c b/lib/pengine/unpack.c
index e9fcae1..99a2dc4 100644
--- a/lib/pengine/unpack.c
+++ b/lib/pengine/unpack.c
@@ -2937,6 +2937,16 @@ unpack_migrate_to_success(pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op,
         }
 
     } else { // Pending, or complete but erased
+
+        /* If there is no history at all for the resource on an online target, then
+         * it was likely cleaned. Just return, and we'll schedule a probe. Once we
+         * have the probe result, it will be reflected in target_newer_state.
+         */
+        if ((target_node != NULL) && target_node->details->online
+            && unknown_on_node(rsc, target)) {
+            return;
+        }
+
         /* If the resource has newer state on the target, this migrate_to no
          * longer matters for the target.
          */