From c08e1b1c4ab342f6d74f1c4298f08d36d2c98570 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 20 Feb 2020 21:36:14 -0500 Subject: [PATCH] pybind/mgr/rbd_support: wait for latest OSD map prior to handling commands The permissions test creates and deletes pools which might result in a race with an out-of-sync OSD map. Signed-off-by: Jason Dillaman --- src/pybind/mgr/rbd_support/module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/rbd_support/module.py b/src/pybind/mgr/rbd_support/module.py index a59a13aac2e..88e07db488f 100644 --- a/src/pybind/mgr/rbd_support/module.py +++ b/src/pybind/mgr/rbd_support/module.py @@ -134,6 +134,9 @@ class Module(MgrModule): self.task = TaskHandler(self) def handle_command(self, inbuf, cmd): + # ensure we have latest pools available + self.rados.wait_for_latest_osdmap() + prefix = cmd['prefix'] try: try: -- 2.39.5