From: John Spray Date: Wed, 28 Oct 2015 05:28:42 +0000 (+0900) Subject: tasks/cephfs: quick test for `tell`... X-Git-Tag: v10.2.6~165^2^2~268^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b51a929c6f70e68b503db92754ef40033b095530;p=ceph.git tasks/cephfs: quick test for `tell`... ...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 --- diff --git a/tasks/cephfs/test_sessionmap.py b/tasks/cephfs/test_sessionmap.py index 70ee1984dde0..fcf92fe9ca0e 100644 --- a/tasks/cephfs/test_sessionmap.py +++ b/tasks/cephfs/test_sessionmap.py @@ -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