]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/pg_autoscaler: fix warn when not too few pgs 51923/head
authorKamoltat <ksirivad@redhat.com>
Mon, 5 Jun 2023 17:17:32 +0000 (17:17 +0000)
committerKamoltat <ksirivad@redhat.com>
Mon, 5 Jun 2023 17:17:32 +0000 (17:17 +0000)
commitbfef56701f576d1a62017d313839a0c36949ac00
tree020dfdc25369555ba5e17a4ce7c4fe4c50f95203
parentd146d2b56c6fd33eb52a85349b04080b31ee06c4
pybind/mgr/pg_autoscaler: fix warn when not too few pgs

Problem:

when `pg_num_final` is equal to `pg_num_target`
we get too many PGs warnings in ceph health while
`warn` mode in the autoscaler.

Solution:

Get rid of `else` condition and add an
`elif p['pg_num_final'] < p['pg_num_target']`
instead

Fixes: https://tracker.ceph.com/issues/61570
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/pybind/mgr/pg_autoscaler/module.py