Bug 1731894

Summary: [rados] - error message when min_size is set to 2 and size to 1 needs to be tuned
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: RADOSAssignee: Neha Ojha <nojha>
Status: CLOSED CURRENTRELEASE QA Contact: Manohar Murthy <mmurthy>
Severity: low Docs Contact:
Priority: low    
Version: 3.3CC: aschoen, ceph-eng-bugs, dzafman, gmeno, jdurgin, kchai, nojha, nthomas
Target Milestone: rc   
Target Release: 4.*   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-22 21:21:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vasishta 2019-07-22 10:17:24 UTC
Description of problem:
When min_size of the pool was set to 2 by mistake when size was just 1, the error message says 'min_size must be between 1 and 1' which needs to be tuned.

Version-Release number of selected component (if applicable):
12.2.12-40.el7cp

How reproducible:
Always

Steps to Reproduce:
1. create a pool
2. reduce the size of the pool to 1
3. try to increase the min_size of the pool to 2

Actual results:
Error EINVAL: pool min_size must be between 1 and 1

Expected results:
Message should convey that
the range of min_size is from 1 to 'size'

Comment 2 Vasishta 2019-07-23 04:45:41 UTC
I presume from [1] that for replicated pool the output would be 
'pool min_size must be between 1 and size, which is set to 1'


[1] https://github.com/ceph/ceph/pull/29184/files#diff-0a5db46a44ae9900e226289a810f10e8R7461

Comment 3 Giridhar Ramaraju 2019-08-05 13:08:35 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 4 Giridhar Ramaraju 2019-08-05 13:10:01 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 5 Josh Durgin 2019-08-21 22:30:07 UTC
Moving out of 3.3z1 due to low severity