From: Kamoltat Date: Fri, 30 Jul 2021 19:29:21 +0000 (+0000) Subject: pybind/mgr/pg_autoscaler: Added PROFILE to autoscale-status X-Git-Tag: v16.2.6~38^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8bfea60e4be78128322eb9ada9763eee305196a;p=ceph.git pybind/mgr/pg_autoscaler: Added PROFILE to autoscale-status autoscaler now shows the PROFILE status of each pool in `ceph osd pool autoscale-status` Signed-off-by: Kamoltat (cherry picked from commit 4a2912bbad72b00ae9fe0d892f07ca760e5cefb4) --- diff --git a/src/pybind/mgr/pg_autoscaler/module.py b/src/pybind/mgr/pg_autoscaler/module.py index d06a0077b417..c57a5feb35dc 100644 --- a/src/pybind/mgr/pg_autoscaler/module.py +++ b/src/pybind/mgr/pg_autoscaler/module.py @@ -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(), ''