]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/pg_autoscaler: only generate target_* health warnings if targets set 32067/head
authorSage Weil <sage@redhat.com>
Thu, 14 Nov 2019 15:48:24 +0000 (09:48 -0600)
committerNathan Cutler <ncutler@suse.com>
Fri, 6 Dec 2019 13:07:30 +0000 (14:07 +0100)
commit6b5d902f341b95ece19c59d4298da03fc80bd56a
tree3ab4769834e0a2c6fed7c6fef7948d60dec3a16a
parenta67a2701414c74b705587a959f029576ef997aa6
mgr/pg_autoscaler: only generate target_* health warnings if targets set

We may get into a situation where the pool stats appear to exceed the
cluster capacity.  If that happens, don't generate confusing health
messages about the target_{ratio,bytes} pool settings when they aren't
actually set at all.

Fixes: https://tracker.ceph.com/issues/42301
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4e5c4cdeb4e88d034e2fed7d6de97a4322a57adc)
src/pybind/mgr/pg_autoscaler/module.py