]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: handle commands sent to unavailable modules 21607/head
authorJohn Spray <john.spray@redhat.com>
Mon, 23 Apr 2018 21:15:22 +0000 (17:15 -0400)
committerJohn Spray <john.spray@redhat.com>
Mon, 23 Apr 2018 21:32:36 +0000 (17:32 -0400)
commitb1e8d63bf787dea415eabda99def9d7e4aff4f9d
treea799cfc6d79e11740a3c81d0d954a057845df964
parentcf5ef59bcc435371c9f1a8ccc784792a9388a5fe
mgr: handle commands sent to unavailable modules

There are some up-front checks in DaemonServer
but it shouldn't assume that its checks are
necessarily going to match the choices about
how ActivePyModules composes its ::modules member,
so let's have some extra checks to avoid
risk of crashing mgr on commands sent to
unhealthy/unloaded modules.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/ActivePyModule.cc
src/mgr/ActivePyModules.cc