From: Jan Fajerski Date: Thu, 10 Aug 2017 17:01:34 +0000 (+0200) Subject: doc/mgr/plugins: mgr accessor during init causes exception X-Git-Tag: v13.0.0~133^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=020d4ccb5915711dc5ecdd80eb161aa339a1e7d6;p=ceph.git doc/mgr/plugins: mgr accessor during init causes exception Currently calling a mgr accessor during a plugins __init__ method causes a cyclic locking exception. Signed-off-by: Jan Fajerski --- diff --git a/doc/mgr/plugins.rst b/doc/mgr/plugins.rst index b5a13cc3eada..465f2cc0db22 100644 --- a/doc/mgr/plugins.rst +++ b/doc/mgr/plugins.rst @@ -97,6 +97,9 @@ have no metadata, or vice versa. On a healthy cluster these will be very rare transient states, but plugins should be written to cope with the possibility. +Note that these accessors must not be called in the modules ``__init__`` +function. This will result in a circular locking exception. + ``get(self, data_name)`` Fetch named cluster-wide objects such as the OSDMap. Valid things