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: v13.1.0~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21065%2Fhead;p=ceph.git qa/cephfs: test if evicted client unmounts without hanging Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/test_client_recovery.py b/qa/tasks/cephfs/test_client_recovery.py index 52cc5f8ec9a5e..8f1df98940445 100644 --- a/qa/tasks/cephfs/test_client_recovery.py +++ b/qa/tasks/cephfs/test_client_recovery.py @@ -476,3 +476,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)