File bsc#1238519-0001-Fix-libpe_status-consider-parents-of-an-unmanaged-re.patch of Package pacemaker.38493
From dbe473ec05fd4adf6f6181e091943d6d2ecc5649 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Thu, 6 Mar 2025 19:36:20 +0100
Subject: [PATCH 1/2] Fix: libpe_status: consider parents of an unmanaged
resource active on the node
... even if the node is offline.
Previously, parents of an unmanaged resource were not added to the node
if the node was offline. So that for instance a resource group in
`maintenance` mode as a whole would not be displayed by
crm_mon/crm_simulate at all.
---
lib/pengine/native.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pacemaker-2.1.5+20221208.a3f44794f/lib/pengine/native.c
===================================================================
--- pacemaker-2.1.5+20221208.a3f44794f.orig/lib/pengine/native.c
+++ pacemaker-2.1.5+20221208.a3f44794f/lib/pengine/native.c
@@ -120,7 +120,7 @@ native_add_running(pe_resource_t * rsc,
pe_rsc_info(rsc, "resource %s isn't managed", rsc->id);
resource_location(rsc, node, INFINITY, "not_managed_default", data_set);
- while(p && node->details->online) {
+ while(p) {
/* add without the additional location constraint */
p->running_on = g_list_append(p->running_on, node);
p = p->parent;