]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-pool: pass pg_num for pg_autoscale_mode warn main
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 19:55:23 +0000 (21:55 +0200)
commit31ad2a336c2cfe0963d5352eb42b51914ba08e24
tree262ecf21c1a976285a5dbc8c012621777d3646b2
parentd0368ad8cf0584319812b90f85a93185d0818b7a
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>
library/ceph_pool.py
tests/library/test_ceph_pool.py