Skip to content

Commit 6c9b1e1

Browse files
clwluvwguits
authored andcommitted
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> (cherry picked from commit bb849a5)
1 parent 4d3e25c commit 6c9b1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/ceph_pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def create_pool(cluster,
391391
args = ['create', user_pool_config['pool_name']['value'],
392392
user_pool_config['type']['value']]
393393

394-
if user_pool_config['pg_autoscale_mode']['value'] != 'on':
394+
if user_pool_config['pg_autoscale_mode']['value'] == 'off':
395395
args.extend(['--pg_num',
396396
user_pool_config['pg_num']['value'],
397397
'--pgp_num',

0 commit comments

Comments
 (0)