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