From 8c015a70a928490cab51d8ecd02a2b4c97af4c1e Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Thu, 27 Feb 2020 10:34:03 +0000 Subject: [PATCH] mgr/rbd_support: wait for latest osdmap on init The main goal is to initialize the librados instance before starting any thread that may use it. Signed-off-by: Mykola Golub --- src/pybind/mgr/rbd_support/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/rbd_support/module.py b/src/pybind/mgr/rbd_support/module.py index f7ee2c8ae8a..6062ceffa78 100644 --- a/src/pybind/mgr/rbd_support/module.py +++ b/src/pybind/mgr/rbd_support/module.py @@ -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) -- 2.39.5