]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-pool: pass pg_num for pg_autoscale_mode warn stable-8.0
authorChristian Brandt <cbrandt@strato.de>
Tue, 16 Sep 2025 15:33:55 +0000 (17:33 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Wed, 17 Sep 2025 20:00:30 +0000 (22:00 +0200)
commit1a613004e3fb3804f26a60369cec32ef9255bd2d
tree3a000430ab2ac86131119f7978b3ec59eeb18a61
parent870d7004a79975e27498131f7e17e5760f985892
ceph-pool: pass pg_num for pg_autoscale_mode warn

The pg_autoscale_mode parameter has three possible values 'on', 'off', and
'warn'. In case of 'warn' it should be possible to pass the number of
placement groups (pg_num) to the create_pool function. Nothing is lost by
allowing this. The health check will still warn if the value needs
adjustment.

The evaluation of target_size_ratio works as before.

Add a test iterating through possible value combinations of the parameters
target_size_ratio, pg_num and pg_autoscale_mode.

Signed-off-by: Christian Brandt <cbrandt@strato.de>
(cherry picked from commit 31ad2a336c2cfe0963d5352eb42b51914ba08e24)
library/ceph_pool.py
tests/library/test_ceph_pool.py