]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: wait for latest osdmap on init 33389/head
authorMykola Golub <mgolub@suse.com>
Thu, 27 Feb 2020 10:34:03 +0000 (10:34 +0000)
committerMykola Golub <mgolub@suse.com>
Thu, 27 Feb 2020 16:38:51 +0000 (16:38 +0000)
The main goal is to initialize the librados instance before
starting any thread that may use it.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/mgr/rbd_support/module.py

index f7ee2c8ae8a923250e753d50d0d843011d5fc630..6062ceffa78a51422a4acaed993e9c990f0ae631 100644 (file)
@@ -155,6 +155,7 @@ class Module(MgrModule):
 
     def __init__(self, *args, **kwargs):
         super(Module, self).__init__(*args, **kwargs)
+        self.rados.wait_for_latest_osdmap()
         self.mirror_snapshot_schedule = MirrorSnapshotScheduleHandler(self)
         self.perf = PerfHandler(self)
         self.task = TaskHandler(self)