Bug 961686

Summary: The additional storage capacity for silver account is still 30GB after STG is upgraded
Product: OKD Reporter: Jianwei Hou <jhou>
Component: PodAssignee: Ravi Sankar <rpenta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: rpenta
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-06-11 03:55:56 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 Jianwei Hou 2013-05-10 09:34:09 UTC
Description of problem:
After STG is upgraded and migrated, the additional gear storage for an existing silver account is still 30GB, which is expected to be reduced to 5GB.
Maybe the mongo isn't migrated or the capacity is reset with oo-admin-ctl-user?

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

How reproducible:
Always

Steps to Reproduce:
1. Prepare an account with silver plan(jhou+6 on STG)
2. After STG is upgraded, verify the account's additional gear storage capacity is changed to 5GB
curl -s -k -H 'Content-Type: Application/json' --user jhou+6:x https://stg.openshift.redhat.com/broker/rest/user -X GET

  
Actual results:
After step 2: the max_storage_per_gear is 30, which is expected to be 5
<--------------------------->
"data": {
    "capabilities": {
      "gear_sizes": [
        "small",
        "medium"
      ],
      "plan_upgrade_enabled": true,
      "private_ssl_certificates": true,
      "subaccounts": false,
      "max_storage_per_gear": 30
    },
<--------------------------->

Expected results:
max_storage_per_gear should be 5

Additional info:

Comment 1 Ravi Sankar 2013-05-10 23:20:22 UTC
This should be fixed on STG now.

Comment 2 Jianwei Hou 2013-05-13 01:39:47 UTC
Verified on STG, the max_storage_per_gear is changed to 5G now
<--------------------------->
"data": {
        "capabilities": {
            "gear_sizes": [
                "small",
                "medium"
            ],
            "plan_upgrade_enabled": true,
            "private_ssl_certificates": true,
            "subaccounts": false,
            "max_storage_per_gear": 5
        },
        "consumed_gears": 10,
.........
<--------------------------->