Description of problem: Defining pools in ceph-ansible, there is no way to set the pg_autoscale mode on warn and at the same time define a target size ratio. There are only two options: 1) pg_autoscale_mode: true - And set target_size_ratio. 2) pg_autoscale_mode: false - target_size_ratio will be ignored - This will cause the cluster to be in a HEALTH_WARN state Version-Release number of selected component (if applicable): 4.0.31 How reproducible: Always Steps to Reproduce: 1. Define in all.yml the openstack pools, example: openstack_glance_pool: name: "images" pg_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}" rule_name: "replicated_rule" type: 1 erasure_profile: "" expected_num_objects: "" application: "rbd" size: "{{ osd_pool_default_size }}" min_size: "{{ osd_pool_default_min_size }}" pg_autoscale_mode: False target_size_ratio: 0.1 2. create the cluster. Actual results: pool images will be created, and cluster will be in HEALTH_WARN state. As target_size_ratio was not set Expected results: There should be the possibility to set pg_autoscaler mode in warn mode and be able to define target_size_ratio Additional info:
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2445