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
Status: CLOSED CURRENTRELEASE
Product: OpenShift Online
Classification: Red Hat
Component: Accounts and Billing (Show other bugs)
3.x
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Abhishek Gupta
yufchang
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2017-11-09 13:48:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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-STG 3.5.5.25
online version:3.5.1.32

How reproducible:
100%
quota.json:
{
  "apiVersion": "v1",
  "kind": "ResourceQuota",
  "metadata": {
    "name": "compute-resources"
  },
  "spec": {
     "hard": {
       "limits.cpu": "4",
      "limits.memory": "10Gi"
    },
    "scopes": [
      "NotTerminating"
    ]
  }
}


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
4.
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.