]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix pg_num counts in pool API tests
authorStephan Müller <smueller@suse.com>
Wed, 13 Nov 2019 12:15:42 +0000 (13:15 +0100)
committerErnesto Puerta <epuertat@redhat.com>
Fri, 2 Oct 2020 08:55:53 +0000 (10:55 +0200)
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 <smueller@suse.com>
(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 <epuertat@redhat.com>
qa/tasks/mgr/dashboard/test_pool.py

index fdf664c72b863d8d9ef4d1bd2d217e9a0a32fe03..ae81f779886071df9734569190139b1e99ec3530 100644 (file)
@@ -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',