]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix tests in order to match pg num conventions 34055/head
authorTatjana Dehler <tdehler@suse.com>
Fri, 8 Nov 2019 12:51:40 +0000 (13:51 +0100)
committerLaura Paduano <lpaduano@suse.com>
Wed, 8 Apr 2020 18:14:39 +0000 (20:14 +0200)
Update the tests test_ganesha and test_rbd_mirroring in order
to match the PG num conventions. It prevents the health warning
'POOL_PG_NUM_NOT_POWER_OF_TWO' from being shown.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit ee46e58e5dc779418492ef6b8c5e687f36ecb3f6)

qa/tasks/mgr/dashboard/test_ganesha.py
qa/tasks/mgr/dashboard/test_rbd_mirroring.py

index 277a5395fbf7263eb4d3926baac738899f3682ef..6b89ca508fbf883ca32c7136db67f7da5a58452c 100644 (file)
@@ -27,7 +27,7 @@ class GaneshaTest(DashboardTestCase):
     @classmethod
     def setUpClass(cls):
         super(GaneshaTest, cls).setUpClass()
-        cls.create_pool('ganesha', 3, 'replicated')
+        cls.create_pool('ganesha', 2**2, 'replicated')
         cls._rados_cmd(['-p', 'ganesha', '-N', 'ganesha1', 'create', 'conf-node1'])
         cls._rados_cmd(['-p', 'ganesha', '-N', 'ganesha1', 'create', 'conf-node2'])
         cls._rados_cmd(['-p', 'ganesha', '-N', 'ganesha1', 'create', 'conf-node3'])
index 5edbd890d89dc15f9aa76acf06c165ba1c8f3701..77d10b46877a815f61837b0c93846c16e01d84da 100644 (file)
@@ -15,7 +15,7 @@ class RbdMirroringTest(DashboardTestCase):
     def create_pool(cls, name, application='rbd'):
         data = {
             'pool': name,
-            'pg_num': 10,
+            'pg_num': 2**3,
             'pool_type': 'replicated',
             'application_metadata': [application]
         }