Bug 1906305 - pg_autoscale_mode should be a choice between on/off/warn and not ture/false
Summary: pg_autoscale_mode should be a choice between on/off/warn and not ture/false
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 4.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.2z2
Assignee: Guillaume Abrioux
QA Contact: Manasa
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-10 08:48 UTC by Osama Elswah
Modified: 2021-06-15 17:13 UTC (History)
7 users (show)

Fixed In Version: ceph-ansible-4.0.54-1.el8cp, ceph-ansible-4.0.54-1.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-15 17:13:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 6471 0 None open osd: always allow setting target_size_ratio 2021-04-15 12:28:32 UTC
Red Hat Product Errata RHSA-2021:2445 0 None None None 2021-06-15 17:13:33 UTC

Description Osama Elswah 2020-12-10 08:48:41 UTC
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:

Comment 1 RHEL Program Management 2020-12-10 08:48:49 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 14 errata-xmlrpc 2021-06-15 17:13:09 UTC
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


Note You need to log in before you can comment on or make changes to this bug.