From: Sage Weil Date: Thu, 7 Nov 2019 18:51:04 +0000 (-0600) Subject: mgr/DaemonServer: warn when we reject reports X-Git-Tag: v15.1.0~975^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=612747e97bdd4701d23dad07ad23751e9821d7cb;p=ceph-ci.git mgr/DaemonServer: warn when we reject reports If this is triggered it can be disruptive, since we're marking the connection down. It points to a real bug, so better visibility is good (e.g., failing the teuthology jobs). Signed-off-by: Sage Weil --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index ccc5bd3eb8b..6d086179c2c 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -498,7 +498,9 @@ bool DaemonServer::handle_report(const ref_t& m) // Clients should not be sending us stats unless they are declaring // themselves to be a daemon for some service. dout(10) << "rejecting report from non-daemon client " << m->daemon_name - << dendl; + << dendl; + clog->warn() << "rejecting report from non-daemon client " << m->daemon_name + << " at " << m->get_connection()->get_peer_addrs(); m->get_connection()->mark_down(); return true; }