Bug 987280

Summary: The min number of gears can be set to be bigger than max number.
Product: OpenShift Online Reporter: Yujie Zhang <yujzhang>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: xtian
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-07 22:55:53 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 Yujie Zhang 2013-07-23 07:15:44 UTC
Description of problem:

Set 2 to be minmum gear numbers of app and 1 to be maxmum gear number, and it can be saved, it should not allow to set min number bigger than max number.

Version-Release number of selected component (if applicable):
devenv_3540

How reproducible:
always

Steps to Reproduce:
1.Set 2 to be minmum gear number of app from website
2.Set 1 to be maxmum gear number of app from website
3.Click the "Save" button

Actual results:

It can be saved successfully, and restapi result like the following:

<scales-from>2</scales-from>
<scales-to>1</scales-to>
<base-gear-storage>1</base-gear-storage>

Expected results:

It should not allow to set min gear number bigger than max gear number.

Additional info:

Comment 1 Abhishek Gupta 2013-07-23 18:46:14 UTC
Could not reproduce on the latest devenv. The UI automatically switches the min and max values assuming it to be a user input error. If the REST API call is made with the invalid values, an error message is returned.

Comment 2 Yujie Zhang 2013-07-24 03:36:07 UTC
Tested on devenv_3544, can not reproduce this issue, UI will switch the min and max when they are invalid, so verify this bug, thanks.