From d7601c546f8c79791bac87778063a1bf0c182414 Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 10 Jul 2018 12:53:46 -0400 Subject: [PATCH] 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 --- qa/tasks/mgr/test_module_selftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/tasks/mgr/test_module_selftest.py b/qa/tasks/mgr/test_module_selftest.py index 0639bacbdb9..1d4dee05e39 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") -- 2.39.5