Blame SOURCES/shutdown-lock-07.patch

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