]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: initialize PyModuleRegistry sooner
authorJohn Spray <john.spray@redhat.com>
Mon, 5 Feb 2018 15:06:09 +0000 (16:06 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 5 Mar 2018 15:12:58 +0000 (10:12 -0500)
commit810369b0cc0ec595da496466d7ab08ecdbc9d57d
tree8b25bcc19392dbf6759bcef2baa676a03d29871b
parentbd05dbd6943b53989c73b0698f17c512e7dd0b2b
mgr: initialize PyModuleRegistry sooner

This was waiting on MgrMap to init, so that it would know whether
modules should be enabled.  However, you don't really need to know
that until someone calls standby_start or active_start, so we
can initialize during MgrStandby::init, and fill out the enabled
flags later.

This prevents the mgr from prematurely emitting a MMgrBeacon
that claims no modules are found.

http://tracker.ceph.com/issues/22918
Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/MgrStandby.cc
src/mgr/PyModule.h
src/mgr/PyModuleRegistry.cc
src/mgr/PyModuleRegistry.h