From: John Spray Date: Mon, 11 Jan 2016 23:15:37 +0000 (+0000) Subject: tasks/cephfs: check status asok output while in reconnect X-Git-Tag: v10.2.6~165^2^2~204^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f566cf7713337eb66b9bb3fbce9be62ebf64ceaa;p=ceph.git tasks/cephfs: check status asok output while in reconnect Mostly checking the output from the status asok is awkward because you need to get the system stuck in a particular state to do so. However, we already have a test here that sticks the system in reconnect, so here's some very light test coverage for that asok. Signed-off-by: John Spray --- diff --git a/tasks/cephfs/test_client_recovery.py b/tasks/cephfs/test_client_recovery.py index ef9a1e7e1c18..8839345e9607 100644 --- a/tasks/cephfs/test_client_recovery.py +++ b/tasks/cephfs/test_client_recovery.py @@ -143,6 +143,9 @@ class TestClientRecovery(CephFSTestCase): self.fs.mds_restart() self.fs.wait_for_state('up:reconnect', reject='up:active', timeout=MDS_RESTART_GRACE) + # Check that the MDS locally reports its state correctly + status = self.fs.mds_asok(['status']) + self.assertIn("reconnect_status", status) ls_data = self._session_list() self.assert_session_count(2, ls_data)