]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: disconnect unregistered service daemon when report received 20089/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Nov 2017 15:05:14 +0000 (10:05 -0500)
committerPrashant D <pdhange@redhat.com>
Wed, 24 Jan 2018 02:46:47 +0000 (21:46 -0500)
This will allow the service daemon to reconnect and re-register
itself as a service daemon without requiring the mgr client to
subscribe to MgrStats and detect its removal.

Fixes: http://tracker.ceph.com/issues/22286
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c97cca13ab066ed2306708986ff387d903b2486a)

src/mgr/DaemonServer.cc

index 321a38ad5349496154d1b4c6338e98fef52f0338..4dc2e4270e9eef4502154be38b993d28f2e29f48 100644 (file)
@@ -406,6 +406,7 @@ bool DaemonServer::handle_report(MMgrReport *m)
     // themselves to be a daemon for some service.
     dout(4) << "rejecting report from non-daemon client " << m->daemon_name
            << dendl;
+    m->get_connection()->mark_down();
     m->put();
     return true;
   }