From ca46c9941bc6837f09aab7b4aaab799d8a9ebf48 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 --- qa/tasks/mgr/dashboard/test_pool.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_pool.py b/qa/tasks/mgr/dashboard/test_pool.py index 935a0909f80..af610673ba1 100644 --- a/qa/tasks/mgr/dashboard/test_pool.py +++ b/qa/tasks/mgr/dashboard/test_pool.py @@ -217,7 +217,7 @@ class PoolTest(DashboardTestCase): def test_pool_create_with_two_applications(self): self.__yield_pool(None, { 'pool': 'dashboard_pool1', - 'pg_num': '10', + 'pg_num': '8', 'pool_type': 'replicated', 'application_metadata': ['rbd', 'sth'], }) @@ -228,7 +228,7 @@ class PoolTest(DashboardTestCase): ['osd', 'erasure-code-profile', 'set', 'ecprofile', 'crush-failure-domain=osd']) self.__yield_pool(None, { 'pool': 'dashboard_pool2', - 'pg_num': '10', + 'pg_num': '8', 'pool_type': 'erasure', 'application_metadata': ['rbd'], 'erasure_code_profile': 'ecprofile', @@ -239,7 +239,7 @@ class PoolTest(DashboardTestCase): def test_pool_create_with_compression(self): pool = { 'pool': 'dashboard_pool3', - 'pg_num': '10', + 'pg_num': '8', 'pool_type': 'replicated', 'compression_algorithm': 'zstd', 'compression_mode': 'aggressive', @@ -269,7 +269,7 @@ class PoolTest(DashboardTestCase): { 'pool_data': { 'pool': 'dashboard_pool_quota1', - 'pg_num': '10', + 'pg_num': '8', 'pool_type': 'replicated', }, 'pool_quotas_to_check': { @@ -280,7 +280,7 @@ class PoolTest(DashboardTestCase): { 'pool_data': { 'pool': 'dashboard_pool_quota2', - 'pg_num': '10', + 'pg_num': '8', 'pool_type': 'replicated', 'quota_max_objects': 1024, 'quota_max_bytes': 1000, -- 2.39.5