From: Rishabh Dave Date: Fri, 13 Apr 2018 06:14:46 +0000 (+0000) Subject: qa/cephfs: test if evicted client unmounts without hanging X-Git-Tag: v12.2.6~76^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=50fa3281dd465d4f6f5a2bd6fa880fd75d4d632f;p=ceph.git qa/cephfs: test if evicted client unmounts without hanging Signed-off-by: Rishabh Dave (cherry picked from commit b14302d1fed101beefd81d5457c14c2a88a13e09) --- diff --git a/qa/tasks/cephfs/test_client_recovery.py b/qa/tasks/cephfs/test_client_recovery.py index fd58c1427338..f00a08355123 100644 --- a/qa/tasks/cephfs/test_client_recovery.py +++ b/qa/tasks/cephfs/test_client_recovery.py @@ -472,3 +472,10 @@ class TestClientRecovery(CephFSTestCase): self.mount_b.mount() self.mount_b.wait_until_mounted() self.mount_b.run_shell(["ls", "subdir/childfile"]) + + def test_unmount_for_evicted_client(self): + """Test if client hangs on unmount after evicting the client.""" + mount_a_client_id = self.mount_a.get_global_id() + self.fs.mds_asok(['session', 'evict', "%s" % mount_a_client_id]) + + self.mount_a.umount_wait(require_clean=True, timeout=30)