]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr: Add limitations section to plugin guide 21347/head
authorTim Serong <tserong@suse.com>
Wed, 11 Apr 2018 10:33:05 +0000 (20:33 +1000)
committerTim Serong <tserong@suse.com>
Wed, 11 Apr 2018 10:33:11 +0000 (20:33 +1000)
Signed-off-by: Tim Serong <tserong@suse.com>
doc/mgr/plugins.rst

index 9e73b7a58cdf20991fe3cb74e703329b73168686..ecf2943d39f604b920001eea7d2aeb3320e72957 100644 (file)
@@ -193,6 +193,15 @@ If a module implements the ``serve()`` method, it should also implement
 the ``shutdown()`` method to shutdown cleanly: misbehaving modules
 may otherwise prevent clean shutdown of ceph-mgr.
 
+Limitations
+-----------
+
+It is not possible to call back into C++ code from a module's
+``__init__()`` method.  For example calling ``self.get_config()`` at
+this point will result in an assertion failure in ceph-mgr.  For modules
+that implement the ``serve()`` method, it usually makes sense to do most
+initialization inside that method instead.
+
 Is something missing?
 ---------------------