]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: quick test for `tell`...
authorJohn Spray <john.spray@redhat.com>
Wed, 28 Oct 2015 05:28:42 +0000 (14:28 +0900)
committerJohn Spray <john.spray@redhat.com>
Wed, 28 Oct 2015 05:28:42 +0000 (14:28 +0900)
...specifically that we don't have lingering
MDS sessions after running it.  This is testing
that Client::shutdown is doing the right thing
and closing sessions.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_sessionmap.py

index 70ee1984dde021b8223a06c973c496cf18fca0dd..fcf92fe9ca0e3ea286da0f2907390a9e8547cb92 100644 (file)
@@ -10,6 +10,20 @@ class TestSessionMap(CephFSTestCase):
     CLIENTS_REQUIRED = 2
     MDSS_REQUIRED = 2
 
+    def test_tell_session_drop(self):
+        """
+        That when a `tell` command is sent using the python CLI,
+        its MDS session is gone after it terminates
+        """
+        self.mount_a.umount_wait()
+        self.mount_b.umount_wait()
+
+        mds_id = self.fs.get_lone_mds_id()
+        self.fs.mon_manager.raw_cluster_cmd("tell", "mds.{0}".format(mds_id), "session", "ls")
+
+        ls_data = self.fs.mds_asok(['session', 'ls'])
+        self.assertEqual(len(ls_data), 0)
+
     def test_version_splitting(self):
         """
         That when many sessions are updated, they are correctly