]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/mgr: delete devicehealth pool after selftest
authorJohn Spray <john.spray@redhat.com>
Tue, 10 Jul 2018 16:53:46 +0000 (12:53 -0400)
committerJohn Spray <john.spray@redhat.com>
Tue, 10 Jul 2018 16:54:52 +0000 (12:54 -0400)
This prevents tests getting hung up on the health
warnings from its very low pg count.

Signed-off-by: John Spray <john.spray@redhat.com>
qa/tasks/mgr/test_module_selftest.py

index 0639bacbdb9ed4fcc0adf751bce203fd789ff73f..1d4dee05e3962a546cf35e5287d4eb4d877ae691 100644 (file)
@@ -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")