diff options
author | Jason Dillaman <dillaman@redhat.com> | 2020-02-21 03:36:14 +0100 |
---|---|---|
committer | Jason Dillaman <dillaman@redhat.com> | 2020-02-21 03:36:14 +0100 |
commit | c08e1b1c4ab342f6d74f1c4298f08d36d2c98570 (patch) | |
tree | 29654ad0da1d7934fdd52c44ad64f32b9fa22f9d /src/pybind/mgr/rbd_support/module.py | |
parent | Merge pull request #33338 from smithfarm/wip-qa-cephadm-smoke-opensuse (diff) | |
download | ceph-c08e1b1c4ab342f6d74f1c4298f08d36d2c98570.tar.xz ceph-c08e1b1c4ab342f6d74f1c4298f08d36d2c98570.zip |
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 <dillaman@redhat.com>
Diffstat (limited to 'src/pybind/mgr/rbd_support/module.py')
-rw-r--r-- | src/pybind/mgr/rbd_support/module.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |