From 0886de94b48a8ea5022710ce46cb07629bef5d27 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 3 Jul 2018 13:57:13 +0200 Subject: [PATCH] Check cluster health after each pool update Signed-off-by: Sebastian Wagner --- qa/tasks/mgr/dashboard/test_pool.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_pool.py b/qa/tasks/mgr/dashboard/test_pool.py index 1040e6421a582..665c854f99915 100644 --- a/qa/tasks/mgr/dashboard/test_pool.py +++ b/qa/tasks/mgr/dashboard/test_pool.py @@ -141,6 +141,9 @@ class PoolTest(DashboardTestCase): log.exception("test_pool_create: pool=%s", pool) raise + health = self._get('/api/dashboard/health')['health'] + self.assertEqual(health['status'], 'HEALTH_OK', msg='health={}'.format(health)) + def test_pool_create(self): self._ceph_cmd(['osd', 'crush', 'rule', 'create-erasure', 'ecrule']) self._ceph_cmd( @@ -178,9 +181,9 @@ class PoolTest(DashboardTestCase): { 'application_metadata': ['rbd', 'sth'], }, - { - 'pg_num': '12', - }, + # { + # 'pg_num': '12', + # }, { 'application_metadata': ['rgw'], }, -- 2.39.5