]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs/test_scrub.py: use umount_wait to avoid ceph-fuse stuck 35328/head
authorXiubo Li <xiubli@redhat.com>
Mon, 1 Jun 2020 01:57:24 +0000 (21:57 -0400)
committerXiubo Li <xiubli@redhat.com>
Mon, 1 Jun 2020 13:24:02 +0000 (09:24 -0400)
If the ceph-fuse client need to flush the caps and does sync wait,
the umount() will just return successfully, then the netns container
will be destroyed and the network will not be reachable, but the
ceph-fuse daemon is still stucked and waiting for the flush caps ack.

This will cause the ceph-fuse daemon get stuck forever and if the
mds daemons get restarted, it will try to reconnect the clients,
but the stucked ceph-fuse daemnon won't reply to it, because it is
not reachable any more.

Fixes: https://tracker.ceph.com/issues/45665
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/test_scrub.py

index 226db815740f03cbedb9199729174ab00779bd64..c36316f4122fd1e9025eb5ca676eee3a74289aad 100644 (file)
@@ -89,7 +89,7 @@ class DupInodeWorkload(Workload):
 
     def damage(self):
         temp_bin_path = "/tmp/10000000000.00000000_omap.bin"
-        self._mount.umount()
+        self._mount.umount_wait()
         self._filesystem.mds_asok(["flush", "journal"])
         self._filesystem.mds_stop()
         self._filesystem.rados(["getomapval", "10000000000.00000000",