From b1f85d896502b40af0fe01465e7bdf37c3e474e1 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Fri, 11 Oct 2019 03:44:32 -0400 Subject: [PATCH] mgr/volumes: guard volume delete by waiting for pending ops Signed-off-by: Venky Shankar (cherry picked from commit 968f67576e10fcb486819cfe3e5b44586d0d7b84) --- src/pybind/mgr/volumes/fs/volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/volume.py b/src/pybind/mgr/volumes/fs/volume.py index 733e7121b89..0a5d98eed35 100644 --- a/src/pybind/mgr/volumes/fs/volume.py +++ b/src/pybind/mgr/volumes/fs/volume.py @@ -325,7 +325,7 @@ class VolumeClient(object): return -errno.ESHUTDOWN, "", "shutdown in progress" self.purge_queue.cancel_purge_job(volname) - self.connection_pool.del_fs_handle(volname) + self.connection_pool.del_fs_handle(volname, wait=True) # Tear down MDS daemons try: completion = self.mgr.remove_stateless_service("mds", volname) -- 2.47.3