From cd69c0416a025ad198d6cdcd0376034653b871d3 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 20 Apr 2017 17:31:10 -0400 Subject: [PATCH] mon: tweak mgr status text Previously at startup we saw contradictory status that had a "no active mgr" health message and then a line that said "active: x". Mitigate that a bit by indicating that a !available active daemon is starting up. Signed-off-by: John Spray --- src/mon/MgrMap.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mon/MgrMap.h b/src/mon/MgrMap.h index 1fd0500131c3a..e522ab4ba0f1a 100644 --- a/src/mon/MgrMap.h +++ b/src/mon/MgrMap.h @@ -126,7 +126,12 @@ public: dump(f); } else { if (get_active_gid() != 0) { - *ss << "active: " << get_active_name() << " "; + *ss << "active: " << get_active_name(); + if (!available) { + // If the daemon hasn't gone active yet, indicate that. + *ss << "(starting)"; + } + *ss << " "; } else { *ss << "no daemons active "; } -- 2.39.5