]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/rbd_support: wait for latest OSD map prior to handling commands 33451/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 02:36:14 +0000 (21:36 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 02:36:14 +0000 (21:36 -0500)
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 <dillaman@redhat.com>
src/pybind/mgr/rbd_support/module.py

index a59a13aac2e6c268127cbe4d0cbd2341424bc9f0..88e07db488f84e202b7df6a1bc0a6d26befde1b4 100644 (file)
@@ -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: