Blame SOURCES/shutdown-lock-07.patch

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