From 09527dcd9eebf7aa363a0f1c88af1292b0f9a83f Mon Sep 17 00:00:00 2001 From: Adam King Date: Thu, 30 Sep 2021 08:34:58 -0400 Subject: [PATCH] mgr/cephadm: put list_servers output in debug logs Over time, seen a number of cases where daemons are being marked stray for unknown reasons and it is always difficult to debug due to the difficulty of finding what list_servers is outputting. I think it would help to include this in the debug logs. That way we have that side of the info available and can easily compare it to daemon/host info cephadm is storing. Signed-off-by: Adam King (cherry picked from commit bdc802354554ea9c5e7c0377e3fe695f719921a7) --- src/pybind/mgr/cephadm/serve.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index 0eed2090f96ee..34936c9c8a5c9 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -496,6 +496,7 @@ class CephadmServe: self.mgr.remove_health_warning(k) if self.mgr.warn_on_stray_hosts or self.mgr.warn_on_stray_daemons: ls = self.mgr.list_servers() + self.log.debug(ls) managed = self.mgr.cache.get_daemon_names() host_detail = [] # type: List[str] host_num_daemons = 0 -- 2.39.5