Bug 1419782

Summary: [devenv] Can not change memory add-on when a user has two projects
Product: OpenShift Online Reporter: yasun
Component: WebsiteAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED WORKSFORME QA Contact: Yanping Zhang <yanpzhan>
Severity: high Docs Contact:
Priority: high    
Version: 3.xCC: aos-bugs, bingli, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-20 09:56:31 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 yasun 2017-02-07 03:17:46 UTC
Description of problem:
If a user have two projects. increase/decrease memory add-on will be failed with "internal server error"

Version-Release number of selected component (if applicable):
openshift v3.4.1.2
kubernetes v1.4.0+776c994

How reproducible:
always

Steps to Reproduce:
1. Set up an Online developer environment
2. Register an openshift account via accountant web console 
3. Create two project via openshift web console with the account
4. Start to increase the memory add-on. 
5. Start to descrease the memory add-on.



Actual results:
Account web console response "internal server error". And from account pod log:
helper.go:93] error: Resource violations: plan requires 1 project(s) but found 2

Expected results:
increase/descrease memory add-on successfully


Additional info:

Comment 1 yasun 2017-02-07 07:18:51 UTC
so is increasing/descreasing storage add-on.

Comment 2 Abhishek Gupta 2017-02-07 17:08:31 UTC
This is being caused by a validation failure. OpenShift is configured to allow users to create up to 10 projects. However, the accountant validates that users have only a maximum of 1 project, based on plan configuration. The plan configuration is being modified in the accountant and should be available tomorrow.

Comment 3 yasun 2017-02-09 09:14:56 UTC
Version-Release number of online-int:
OpenShift Master:   v3.4.1.2 (online version 3.4.1.4)
Kubernetes Master:  v1.4.0+776c994 

Test on online-int, the project limit number for good plan has been updated to 10, and create several projects, and then increase/decrease memory/storage add-on successfully.