]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/pg_autoscaler: Added PROFILE to autoscale-status
authorKamoltat <ksirivad@redhat.com>
Fri, 30 Jul 2021 19:29:21 +0000 (19:29 +0000)
committerKamoltat <ksirivad@redhat.com>
Thu, 26 Aug 2021 19:56:44 +0000 (19:56 +0000)
autoscaler now shows the PROFILE status of each pool
in `ceph osd pool autoscale-status`

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 4a2912bbad72b00ae9fe0d892f07ca760e5cefb4)

src/pybind/mgr/pg_autoscaler/module.py

index d06a0077b41706df5bca39c3655b1bd6acd82ede..c57a5feb35dcd067c7f40d4273cd220c638936b3 100644 (file)
@@ -189,7 +189,8 @@ class PgAutoscaler(MgrModule):
                                  'BIAS',
                                  'PG_NUM',
 #                                 'IDEAL',
-                                 'NEW PG_NUM', 'AUTOSCALE'],
+                                 'NEW PG_NUM', 'AUTOSCALE',
+                                 'PROFILE'],
                                 border=False)
             table.left_padding_width = 0
             table.right_padding_width = 2
@@ -206,6 +207,7 @@ class PgAutoscaler(MgrModule):
 #            table.align['IDEAL'] = 'r'
             table.align['NEW PG_NUM'] = 'r'
             table.align['AUTOSCALE'] = 'l'
+            table.align['PROFILE'] =  'l'
             for p in ps:
                 if p['would_adjust']:
                     final = str(p['pg_num_final'])
@@ -237,6 +239,7 @@ class PgAutoscaler(MgrModule):
 #                    p['pg_num_ideal'],
                     final,
                     p['pg_autoscale_mode'],
+                    profile
                 ])
             return 0, table.get_string(), ''