]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_pool: set target size ratio on both 'on' and 'warn' mode
authorSeena Fallah <seenafallah@gmail.com>
Mon, 25 Apr 2022 22:07:28 +0000 (00:07 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 31 May 2022 12:37:04 +0000 (14:37 +0200)
commitbb849a55861e3900362ec46e68a02754b2c892ec
tree652bbe6aa22216be1c70ceecea8f83ff69fd7e1d
parent245133f9e0d043ca6ac8abeca1b899720e689f23
ceph_pool: set target size ratio on both 'on' and 'warn' mode

when we set target_size_ratio to warn it means that the administrator wants to get suggestion from the mgr module but apply it manually when he/she wants. So it's in the same approach as 'on' mode just triggered by hand.
So there is no need to set pg_num when target_size_ratio is 'warn' and the mgr module will calculate the correct pg_num and the administrator will adjust it whenever he/she wants.

It is the same approach that was in #6471

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
library/ceph_pool.py