From: Adam King Date: Thu, 30 Sep 2021 12:34:58 +0000 (-0400) Subject: mgr/cephadm: put list_servers output in debug logs X-Git-Tag: v16.2.7~67^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=09527dcd9eebf7aa363a0f1c88af1292b0f9a83f;p=ceph.git 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) --- diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index 0eed2090f96e..34936c9c8a5c 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