30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 46d6edd5a7eb6079925ed69576c754ab46ab3f1d Mon Sep 17 00:00:00 2001
|
|
From: Klaus Wenninger <klaus.wenninger@aon.at>
|
|
Date: Tue, 13 Apr 2021 09:59:00 +0200
|
|
Subject: [PATCH] Fix: crm_mon: try to connect CIB while pacemakerd shutting
|
|
down
|
|
|
|
we need to do this in all output modes (xml specifically)
|
|
---
|
|
tools/crm_mon.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/tools/crm_mon.c b/tools/crm_mon.c
|
|
index 8b6e174..95adef8 100644
|
|
--- a/tools/crm_mon.c
|
|
+++ b/tools/crm_mon.c
|
|
@@ -1031,6 +1031,10 @@ pacemakerd_status(void)
|
|
case pcmk_pacemakerd_state_running:
|
|
rc = pcmk_rc_ok;
|
|
break;
|
|
+ case pcmk_pacemakerd_state_shutting_down:
|
|
+ /* try our luck maybe CIB is still accessible */
|
|
+ rc = pcmk_rc_ok;
|
|
+ break;
|
|
default:
|
|
break;
|
|
}
|
|
--
|
|
1.8.3.1
|
|
|