From: John Spray Date: Tue, 10 Jul 2018 16:53:46 +0000 (-0400) Subject: qa/mgr: delete devicehealth pool after selftest X-Git-Tag: v14.0.1~896^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22969%2Fhead;p=ceph.git qa/mgr: delete devicehealth pool after selftest This prevents tests getting hung up on the health warnings from its very low pg count. Signed-off-by: John Spray --- diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index 0639bacbdb9e..1d4dee05e396 100644 --- a/qa/tasks/mgr/test_module_selftest.py +++ b/qa/tasks/mgr/test_module_selftest.py @@ -53,6 +53,13 @@ class TestModuleSelftest(MgrTestCase): def test_devicehealth(self): self._selftest_plugin("devicehealth") + # Clean up the pool that the module creates, because otherwise + # it's low PG count causes test failures. + pool_name = "device_health_metrics" + self.mgr_cluster.mon_manager.raw_cluster_cmd( + "osd", "pool", "delete", pool_name, pool_name, + "--yes-i-really-really-mean-it") + def test_selftest_run(self): self._load_module("selftest")