]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/pybind/mgr/pg_autoscaler/module.py: fix 'pg_autoscale_mode' output
authorKamoltat <ksirivad@redhat.com>
Tue, 19 Dec 2023 20:21:50 +0000 (20:21 +0000)
committerroot <root@vossi06.front.sepia.ceph.com>
Mon, 26 Aug 2024 20:27:56 +0000 (20:27 +0000)
commitd195043317cb10ef34d5252797b046812ff02721
tree9092d54629763764c1ab04a35673f1e516006633
parentbc8041ca51efd6b0a221932d52577fd747eb8b19
src/pybind/mgr/pg_autoscaler/module.py: fix 'pg_autoscale_mode' output

Problem:
`ceph osd pool autoscale-status -f json`
and `ceph osd pool autoscale-status`
shows discrepeencies between each other
in the `pg_autoscale_mode` section,
when `no_autoscale` flag is set.

Solution:

set `pg_autoscale_mode` to `false` for
both `ceph osd pool autoscale-status` and
the json version of the command if `no_autoscale`
is set.

Fixes: https://tracker.ceph.com/issues/63860
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit bd8d7e9695644fe4a7f178172eb42a0b5602f458)
src/pybind/mgr/pg_autoscaler/module.py