Bug 1405119

Summary: Tenant Quota allows you to set the Total quota to be less than the Allocated value(s) for sub-tenants.
Product: Red Hat CloudForms Management Engine Reporter: William Fitzgerald <wfitzger>
Component: ApplianceAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED NOTABUG QA Contact: Vatsal Parekh <vparekh>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: abellott, akarol, aperotti, bascar, jhardy, obarenbo, vparekh, wfitzger, yrudman
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: cfme_tenant:quota
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-12 15:25:59 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:
Bug Depends On:    
Bug Blocks: 1468726    
Attachments:
Description Flags
picture of tenant and child tenant quota none

Description William Fitzgerald 2016-12-15 16:21:49 UTC
Created attachment 1232271 [details]
picture of tenant and child tenant quota

Description of problem:
Tenant Quota allows you to set the Total quota to be less than the Allocated value(s) for sub-tenants.


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


How reproducible:
100%

Steps to Reproduce:
1.  Set sub-tenant quota for cpu to be 8 (or any number greater than 1)
2.  Set tenant quota for cpu to 1
3.

Actual results:
Tenant quota is allowed to be less than total allocated.

Expected results:
Tenant quota should NOT be allowed to be less than total allocated.

Additional info:

Comment 4 Yuri Rudman 2017-08-28 18:03:22 UTC
Is this issue exists for subtenants on second or third level ?

Comment 5 William Fitzgerald 2017-08-30 21:30:10 UTC
This exists on the second level.

Billy

Comment 6 Yuri Rudman 2017-08-31 11:25:15 UTC
Billy, Thank you for checking.
Just for clarificationcon:
Let's say tenants hierarchy is: Root -> Tenant1 -> Tenant2 -> Tenant3.

By design we are not checking limitation for Root and Tenant1. (unfortunately UI does allow to set-up quotes, which will be ignored). Quotes check starting from Tenant2.

Could you confirm that issue exists when setting quotes for Tenant2 bigger that allocated quote for Tenanat3

Comment 7 William Fitzgerald 2017-08-31 15:26:16 UTC
Yuri,

The UI will NOT let you set quota for tenant2 bigger than tenant3.  The problem is the lowest level isn't checking anything and will let you set quota to whatever you want. 
In my case, I set the quota to 200 for tenant2.  I set the quota for tenant3 to 400 and it should have not allowed me to go beyond what tenant2 is set at (200).

Hope this helps

Billy

Comment 8 William Fitzgerald 2018-04-12 15:25:59 UTC
By design we are not checking limitation for Root and Tenant1.