Bug 1010820

Summary: [fork][origin_ui_80] rhc account display wrong Domains Allowed number "1" for silver who can create more than one domain
Product: OpenShift Online Reporter: weiwei jiang <wjiang>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: wsun
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-10-17 13:30:34 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 weiwei jiang 2013-09-23 06:47:16 UTC
Description of problem:
After set max_domain_per_user>1(like 5) on the instance and restart broker service, then upgrade the user, run `rhc account` will display : " Domains Allowed : 1", but GET /broker/rest/user display {"max_domains":5}, and silver user can create multiple domains via client

Version-Release number of selected component (if applicable):
rhc-1.15.0-build_from_fork_72
fork_ami_origin_ui_72_membership_844

How reproducible:
always

Steps to Reproduce:
1.Set max_domain_per_user>1 (like 5) and restart broker service
2.upgrade user to silver
3.check "Domains Allowed" via `rhc account`

Actual results:
#rhc account
Login wjiang+904 on ec2-204-236-250-26.compute-1.amazonaws.com
-------------------------------------------------------------------------
  ID:                 523fce316311e7ca7d000005
  Plan:               Silver
  Gears Used:         1
  Gears Allowed:      16
  Domains Allowed:    1
  Allowed Gear Sizes: small, medium
  SSL Certificates:   yes


Expected results:
It should not be "1"

Additional info:

Comment 1 Clayton Coleman 2013-09-23 22:15:49 UTC
Fixed in 1af5a23, will be in next fork ami

Comment 2 weiwei jiang 2013-09-26 07:30:54 UTC
Tested on fork_ami_origin_ui_72_membership_863 via rhc build from it, and found this issue is fixed, so verify this issue, thx

# rhc account 
Login wjiang+926 on localhost
----------------------------------------
  ID:                 5243e15d1df48bec72000193
  Plan:               Silver
  Gears Used:         0
  Gears Allowed:      16
  Domains Allowed:    16
  Allowed Gear Sizes: small, medium
  SSL Certificates:   yes