Skip to content

Commit 7f425f8

Browse files
committed
Allow ceph_pool to set pg_num when auto_scaler set to warn
ceph_pool will only set the pg_num and pgp_num options when the auto_scaler is set to off. While it makes sense not to set them when the auto_scaler is on, the auto_scaler can also be set to "warn" mode where it will not adjust the PG count either. It seems counterintuitive to not allow configuring pg count in that case. Signed-off-by: stryan <[email protected]>
1 parent 5d2b947 commit 7f425f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/ceph_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def create_pool(cluster,
425425
args = ['create', user_pool_config['pool_name']['value'],
426426
user_pool_config['type']['value']]
427427

428-
if user_pool_config['pg_autoscale_mode']['value'] == 'off':
428+
if user_pool_config['pg_autoscale_mode']['value'] in ["off","warn"]:
429429
args.extend(['--pg_num',
430430
user_pool_config['pg_num']['value'],
431431
'--pgp_num',

0 commit comments

Comments
 (0)