]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix tests in order to match pg num conventions
authorTatjana Dehler <tdehler@suse.com>
Fri, 8 Nov 2019 12:51:40 +0000 (13:51 +0100)
committerTatjana Dehler <tdehler@suse.com>
Mon, 2 Dec 2019 08:56:28 +0000 (09:56 +0100)
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>
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 7afeaa4ad6555e3b0a2bca347279ae9ece39ecde..08d793c2db4f73f28480cd6fb65677733d18ceb8 100644 (file)
@@ -13,7 +13,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]
         }