From: Tatjana Dehler Date: Fri, 8 Nov 2019 12:51:40 +0000 (+0100) Subject: mgr/dashboard: fix tests in order to match pg num conventions X-Git-Tag: v14.2.10~145^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=14823e5a9ff798df2d9f7cd6667748347e2163ca;p=ceph.git mgr/dashboard: fix tests in order to match pg num conventions 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 (cherry picked from commit ee46e58e5dc779418492ef6b8c5e687f36ecb3f6) --- diff --git a/qa/tasks/mgr/dashboard/test_ganesha.py b/qa/tasks/mgr/dashboard/test_ganesha.py index 277a5395fbf72..6b89ca508fbf8 100644 --- a/qa/tasks/mgr/dashboard/test_ganesha.py +++ b/qa/tasks/mgr/dashboard/test_ganesha.py @@ -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']) diff --git a/qa/tasks/mgr/dashboard/test_rbd_mirroring.py b/qa/tasks/mgr/dashboard/test_rbd_mirroring.py index 5edbd890d89dc..77d10b46877a8 100644 --- a/qa/tasks/mgr/dashboard/test_rbd_mirroring.py +++ b/qa/tasks/mgr/dashboard/test_rbd_mirroring.py @@ -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] }