From 15a5ebdce2a31990ebc850daf515fe2724dd3ea2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 9 Jan 2020 20:52:26 +0800 Subject: [PATCH] qa/tasks/mgr/dashboard: set pg_num to 16 as the default pg_num is now 16 since 78bf9244, and the minimum pg_num is also 16 in autoscaler since 78bf9244. Fixes: https://tracker.ceph.com/issues/43227 Signed-off-by: Kefu Chai --- qa/tasks/mgr/dashboard/test_pool.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_pool.py b/qa/tasks/mgr/dashboard/test_pool.py index 390572bea6d..e3528748033 100644 --- a/qa/tasks/mgr/dashboard/test_pool.py +++ b/qa/tasks/mgr/dashboard/test_pool.py @@ -61,7 +61,7 @@ class PoolTest(DashboardTestCase): def _create_pool(self, name, data): data = data or { 'pool': name, - 'pg_num': '4', + 'pg_num': '16', 'pool_type': 'replicated', 'compression_algorithm': 'snappy', 'compression_mode': 'passive', @@ -217,7 +217,7 @@ class PoolTest(DashboardTestCase): def test_pool_create_with_two_applications(self): self.__yield_pool(None, { 'pool': 'dashboard_pool1', - 'pg_num': '8', + 'pg_num': '16', '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': '8', + 'pg_num': '16', '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': '8', + 'pg_num': '16', 'pool_type': 'replicated', 'compression_algorithm': 'zstd', 'compression_mode': 'aggressive', @@ -269,7 +269,7 @@ class PoolTest(DashboardTestCase): { 'pool_data': { 'pool': 'dashboard_pool_quota1', - 'pg_num': '8', + 'pg_num': '16', 'pool_type': 'replicated', }, 'pool_quotas_to_check': { @@ -280,7 +280,7 @@ class PoolTest(DashboardTestCase): { 'pool_data': { 'pool': 'dashboard_pool_quota2', - 'pg_num': '8', + 'pg_num': '16', 'pool_type': 'replicated', 'quota_max_objects': 1024, 'quota_max_bytes': 1000,