]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: test if evicted client unmounts without hanging 21065/head
authorRishabh Dave <ridave@redhat.com>
Fri, 13 Apr 2018 06:14:46 +0000 (06:14 +0000)
committerRishabh Dave <ridave@redhat.com>
Mon, 30 Apr 2018 12:02:56 +0000 (12:02 +0000)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_client_recovery.py

index 52cc5f8ec9a5e6fa35b94c4d1beaaf58cf88a0b5..8f1df9894044583a5a8ee188752c5db16b5fb11a 100644 (file)
@@ -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)