From 8cc023dd70f9830705ab9784eb342f0925dbf5c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BCller?= Date: Wed, 13 Nov 2019 13:15:42 +0100 Subject: [PATCH] mgr/dashboard: Fix pg_num counts in pool API tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To prevent the not a number of two cluster health warning, all created pools now have a pg_num that is a power of two. Fixes: https://tracker.ceph.com/issues/42776 Signed-off-by: Stephan Müller (cherry picked from commit ca46c9941bc6837f09aab7b4aaab799d8a9ebf48) Conflicts: qa/tasks/mgr/dashboard/test_pool.py: - Ignore quota tests and accept 8 PG number Signed-off-by: Ernesto Puerta --- qa/tasks/mgr/dashboard/test_pool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_pool.py b/qa/tasks/mgr/dashboard/test_pool.py index fdf664c72b863..ae81f77988607 100644 --- a/qa/tasks/mgr/dashboard/test_pool.py +++ b/qa/tasks/mgr/dashboard/test_pool.py @@ -221,7 +221,7 @@ class PoolTest(DashboardTestCase): def test_pool_create_with_two_applications(self): self.__yield_pool(None, { 'pool': 'dashboard_pool1', - 'pg_num': '32', + 'pg_num': '8', 'pool_type': 'replicated', 'application_metadata': ['rbd', 'sth'], }) @@ -232,7 +232,7 @@ class PoolTest(DashboardTestCase): ['osd', 'erasure-code-profile', 'set', 'ecprofile', 'crush-failure-domain=osd']) self.__yield_pool(None, { 'pool': 'dashboard_pool2', - 'pg_num': '32', + 'pg_num': '8', 'pool_type': 'erasure', 'application_metadata': ['rbd'], 'erasure_code_profile': 'ecprofile', @@ -243,7 +243,7 @@ class PoolTest(DashboardTestCase): def test_pool_create_with_compression(self): pool = { 'pool': 'dashboard_pool3', - 'pg_num': '32', + 'pg_num': '8', 'pool_type': 'replicated', 'compression_algorithm': 'zstd', 'compression_mode': 'aggressive', -- 2.39.5