From: Patrick Donnelly Date: Tue, 3 Dec 2019 23:02:19 +0000 (-0800) Subject: qa: test mgr cephfs mount blacklist X-Git-Tag: v14.2.8~53^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e1d712b3c60aae94f7b5beff0877bd73ff42d21;p=ceph.git qa: test mgr cephfs mount blacklist Signed-off-by: Patrick Donnelly (cherry picked from commit 98e3b7efe8bc92d88f161c892ce91a7fff67052c) Note: removed mgr blacklist test which applies to Octopus. --- diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 53713a3896c7..89259342b0de 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -229,6 +229,15 @@ class CephFSTestCase(CephTestCase): def _session_by_id(self, session_ls): return dict([(s['id'], s) for s in session_ls]) + def wait_until_evicted(self, client_id, timeout=30): + def helper(): + ls = self._session_list() + for s in ls: + if s['id'] == client_id: + return False + return True + self.wait_until_true(lambda: helper(), timeout) + def wait_for_daemon_start(self, daemon_ids=None): """ Wait until all the daemons appear in the FSMap, either assigned