From e3434b6d2f74e2c9a158ceba5e5bafd03d1c1422 Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 27 Jul 2015 23:29:06 +0100 Subject: [PATCH] tasks/cephfs: test_pool_perm: reinstate proper caps on teardown Signed-off-by: John Spray --- tasks/cephfs/test_pool_perm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/cephfs/test_pool_perm.py b/tasks/cephfs/test_pool_perm.py index b71436d326ea4..a566f8630ee8d 100644 --- a/tasks/cephfs/test_pool_perm.py +++ b/tasks/cephfs/test_pool_perm.py @@ -49,3 +49,9 @@ class TestPoolPerm(CephFSTestCase): # read should fail self.mount_a.run_python(remote_script.format(path=file_path, check_read=str(True))) + + def tearDown(self): + self.fs.mon_manager.raw_cluster_cmd_result('auth', 'caps', "client.{0}".format(self.mount_a.client_id), + 'mon', 'allow r', 'osd', 'allow rw pool=data') + + super(CephFSTestCase, self).tearDown() -- 2.39.5