Blame SOURCES/016-shutdown-lock.patch

308170
From bc9c07951cb9c411324056b4d5322016153fee20 Mon Sep 17 00:00:00 2001
308170
From: Ken Gaillot <kgaillot@redhat.com>
308170
Date: Tue, 14 Jan 2020 16:01:16 -0600
308170
Subject: [PATCH 12/18] Low: tools: crm_resource resource checks should show
308170
 shutdown locks
308170
308170
---
308170
 tools/crm_resource_runtime.c | 5 +++++
308170
 1 file changed, 5 insertions(+)
308170
308170
diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c
308170
index 2ea8bb3..ed5fb03 100644
308170
--- a/tools/crm_resource_runtime.c
308170
+++ b/tools/crm_resource_runtime.c
308170
@@ -928,6 +928,11 @@ cli_resource_check(cib_t * cib_conn, resource_t *rsc)
308170
     }
308170
     free(managed);
308170
 
308170
+    if (rsc->lock_node) {
308170
+        printf("%s  * '%s' is locked to node %s due to shutdown\n",
308170
+               (printed? "" : "\n"), parent->id, rsc->lock_node->details->uname);
308170
+    }
308170
+
308170
     if (printed) {
308170
         printf("\n");
308170
     }
308170
-- 
308170
1.8.3.1
308170