]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: expect pg_num_max property for pools
authorSage Weil <sage@newdream.net>
Mon, 22 Nov 2021 21:42:46 +0000 (16:42 -0500)
committerKamoltat <ksirivad@redhat.com>
Wed, 23 Mar 2022 04:27:42 +0000 (04:27 +0000)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 094d0268f75917217df696b7fa0fdc7aa42d69ae)

src/pybind/mgr/dashboard/controllers/pool.py
src/pybind/mgr/dashboard/openapi.yaml

index 3ad1aa95f6d6841515a0a2801c61ae862001b926..c653575dea5593109484cbd245378bd38383dd61 100644 (file)
@@ -74,7 +74,8 @@ POOL_SCHEMA = ([{
     "expected_num_objects": (int, ""),
     "fast_read": (bool, ""),
     "options": ({
-        "pg_num_min": (int, "")
+        "pg_num_min": (int, ""),
+        "pg_num_max": (int, "")
     }, ""),
     "application_metadata": ([str], ""),
     "create_time": (str, ""),
index 5848fb8d544e0cd098b36512970c25eac9f5919e..fc5259b0af9bc6e4922cacdd13fd74b6e218b31c 100644 (file)
@@ -6899,11 +6899,15 @@ paths:
                     options:
                       description: ''
                       properties:
+                        pg_num_max:
+                          description: ''
+                          type: integer
                         pg_num_min:
                           description: ''
                           type: integer
                       required:
                       - pg_num_min
+                      - pg_num_max
                       type: object
                     pg_autoscale_mode:
                       description: ''