]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: test if evicted client unmounts without hanging 22018/head
authorRishabh Dave <ridave@redhat.com>
Fri, 13 Apr 2018 06:14:46 +0000 (06:14 +0000)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 15 May 2018 22:34:05 +0000 (15:34 -0700)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit b14302d1fed101beefd81d5457c14c2a88a13e09)

qa/tasks/cephfs/test_client_recovery.py

index fd58c1427338e1cf1f234ec55361e33b56782730..f00a083551239bb8ffd485d3f0e1f6f26a2827ac 100644 (file)
@@ -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)