Bug 1256614

Summary: Consumed gears and actual used gears mismatch for some accounts on STG
Product: OpenShift Online Reporter: Yan Du <yadu>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: Jianwei Hou <jhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: aos-bugs, bmeng, jokerman, mmccomas, xiuwang
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: 2015-09-08 20:14:57 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 Yan Du 2015-08-25 06:44:15 UTC
Description of problem:
1. 
The account info show that consumed gears is 3, but when we check the apps in the account, there is no app in this account: 
 # rhc account -l  libra-test+free35 -p 
Login libra-test+free35 on stg.openshift.redhat.com
--------------------------------------------------------------
  ID:                 5481226cdbd93c3e54000155
  Plan:               Free
  Gears Used:         3
  Gears Allowed:      3
  Domains Allowed:    1
  Allowed Gear Sizes: small
  SSL Certificates:   no
  
# rhc apps -l  libra-test+free35 -p 
No applications. Use 'rhc create-app'

2.
# rhc account -l  libra-test+free10  -p 
Login libra-test+free10 on stg.openshift.redhat.com
--------------------------------------------------------------
  ID:                 54811c9fdbd93c3e540000c3
  Plan:               Free
  Gears Used:         2
  Gears Allowed:      3
  Domains Allowed:    1
  Allowed Gear Sizes: small
  SSL Certificates:   no


# rhc apps  -l  libra-test+free10  -p 
In order to deploy applications, you must create a domain with 'rhc setup' or 'rhc create-domain'.


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


How reproducible:
Always

Steps to Reproduce:
1. Check the accounts on STG


Actual results:
Same as description

Expected results:
Consumed gears and actual used gears should be consistent for account

Comment 1 XiuJuan Wang 2015-08-25 07:22:51 UTC
The following accounts are also mismatched for consumed gears and actual used gears in STG:
libra-test+power13,
libra-test+free2,
libra-test+free3,
libra-test+free8,
libra-test+free9,
libra-test+free11,
libra-test+free12,
libra-test+free13,
libra-test+free14,
libra-test+free17,
libra-test+free19,
libra-test+free20,
libra-test+free22,
libra-test+free23,
libra-test+free24,
libra-test+free25,
libra-test+free26,
libra-test+free27,
libra-test+free29,
libra-test+free31,
libra-test+free32,
libra-test+free34,
libra-test+free37,
libra-test+free38,
libra-test+free39,
libra-test+free41,
libra-test+free45

Comment 3 Abhishek Gupta 2015-08-27 18:17:25 UTC
The consumed gear mismatch has been fixed in STG.

Comment 4 Yan Du 2015-08-28 09:19:18 UTC
Test on latest STG env, issue have been fixed.

Move bug to verified.