Bug 1460980 - [paid][online-stg]User can create project quota which exceeds his plan resource
[paid][online-stg]User can create project quota which exceeds his plan resource
Product: OpenShift Online
Classification: Red Hat
Component: Accounts and Billing (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Abhishek Gupta
Depends On:
  Show dependency treegraph
Reported: 2017-06-13 06:07 EDT by yufchang
Modified: 2017-11-09 13:48 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-11-09 13:48:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description yufchang 2017-06-13 06:07:51 EDT
Description of problem:
In user's plan , the Max memory is 2Gi Memory for application. But User can create project quota over 2Gi, such as  limits.memory=10Gi.

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

How reproducible:
  "apiVersion": "v1",
  "kind": "ResourceQuota",
  "metadata": {
    "name": "compute-resources"
  "spec": {
     "hard": {
       "limits.cpu": "4",
      "limits.memory": "10Gi"
    "scopes": [

Steps to Reproduce:
1.login in online-stg , subscribe a base plan;
2.oc new-project pro2;
3.oc create quota.json -n pro2;
4.oc describe quota compute-resources -n pro2

Actual results:
3.resourcequota "compute-resources" created
Name:        compute-resources
Namespace:    pro2
Scopes:        NotTerminating
 * Matches all pods that do not have an active deadline.
Resource    Used    Hard
--------    ----    ----
limits.cpu    0    4
limits.memory    0    10Gi

Expected Result
Failure in create project quota when the memory is over Max memory the user have.
Comment 1 Abhishek Gupta 2017-06-13 11:32:58 EDT
The user is allowed to create a project that that exceeds the user quota. However, the user cannot consume resources that exceed either the project quota or the user (CRQ) quota. The quota screen on the console will show show that the user quota max has been reached.
Comment 2 yufchang 2017-06-13 22:57:43 EDT
ok , thanks

Note You need to log in before you can comment on or make changes to this bug.