Bug 990341

Summary: Duplicate gear size show in user's allowed gears.
Product: OpenShift Online Reporter: Liang Xia <lxia>
Component: PodAssignee: Rajat Chopra <rchopra>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: chunchen, rchopra
Target Milestone: ---   
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:58:21 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 Liang Xia 2013-07-31 02:45:13 UTC
Description of problem:
Say a user has gear size small (medium/c9), add gear size small (medium/c9) to user via oo-admin-ctl-user will show duplicate small (medium/c9) in user's allowed gear size.

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

How reproducible:
always

Steps to Reproduce:
1.oo-admin-ctl-user -l lxia
2.oo-admin-ctl-user -l lxia --addgearsize medium
3.oo-admin-ctl-user -l lxia --addgearsize medium
4.oo-admin-ctl-user -l lxia
5.rhc account -l lxia

Actual results:
Step 4 show: gear sizes: small, medium, medium
Step 5 show: Allowed Gear Sizes: small, medium, medium

Expected results:
No duplicate.

Additional info:

Comment 1 Rajat Chopra 2013-07-31 19:38:24 UTC
Fixed with pull request - https://github.com/openshift/origin-server/pull/3245

Comment 2 chunchen 2013-08-01 02:12:39 UTC
It's fixed, verified on devenv_3597, please refer to the results:

1.oo-admin-ctl-user -l chunchen --addgearsize medium
2.oo-admin-ctl-user -l chunchen --addgearsize medium
3.oo-admin-ctl-user -l chunchen
4.rhc account -l chunchen

At step 3: gear sizes: small, medium, c9
At step 4: Allowed Gear Sizes: small, medium, c9