From: Stephan Müller Date: Wed, 13 Nov 2019 12:15:42 +0000 (+0100) Subject: mgr/dashboard: Fix pg_num counts in pool API tests X-Git-Tag: v15.1.0~860^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca46c9941bc6837f09aab7b4aaab799d8a9ebf48;p=ceph.git mgr/dashboard: Fix pg_num counts in pool API tests 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 --- diff --git a/qa/tasks/mgr/dashboard/test_pool.py b/qa/tasks/mgr/dashboard/test_pool.py index 935a0909f80d..af610673ba18 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,