]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: put list_servers output in debug logs
authorAdam King <adking@redhat.com>
Thu, 30 Sep 2021 12:34:58 +0000 (08:34 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:23 +0000 (10:01 +0100)
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 <adking@redhat.com>
(cherry picked from commit bdc802354554ea9c5e7c0377e3fe695f719921a7)

src/pybind/mgr/cephadm/serve.py

index 0eed2090f96ee950a809178887540a78e325f6f0..34936c9c8a5c94afab43b0de348b9d2297646b14 100644 (file)
@@ -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