From 49ebe4ce934b7bcc81b77a61e7ba3cf76f4ce911 Mon Sep 17 00:00:00 2001 From: Klaus Wenninger Date: Mon, 12 Apr 2021 15:06:09 +0200 Subject: [PATCH] Fix: crm_mon: try to connect CIB while pacemakerd shutting down actually while resources are evacuated from the node. But atm there is no clean and easy way to tell when this is done and pacemakerd is just shutting down leftover daemons. So try to connect anyway. --- tools/crm_mon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/crm_mon.c b/tools/crm_mon.c index f77268a..8b6e174 100644 --- a/tools/crm_mon.c +++ b/tools/crm_mon.c @@ -1014,6 +1014,8 @@ pacemakerd_status(void) break; case pcmk_pacemakerd_state_shutting_down: print_as(output_format ,"Pacemaker daemons shutting down ...\n"); + /* try our luck maybe CIB is still accessible */ + rc = pcmk_rc_ok; break; case pcmk_pacemakerd_state_shutdown_complete: /* assuming pacemakerd doesn't dispatch any pings after entering -- 1.8.3.1