Bug 1401251

Summary: A tenant can go over quota if he provisions multiple items at the same time.
Product: Red Hat CloudForms Management Engine Reporter: ldomb
Component: ProvisioningAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED NEXTRELEASE QA Contact: Ganesh Hubale <ghubale>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: ghubale, gmccullo, jhardy, jocarter, jsisul, kmorey, nstephan, obarenbo, sshveta, tfitzger
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: quota
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-21 21:32: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:
Attachments:
Description Flags
quota none

Description ldomb 2016-12-04 00:21:52 UTC
Description of problem:

A tenant can order multiple catalog items via ssp and overprovision cpu quota. I didn't test oder quota. 

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


How reproducible:


Steps to Reproduce:
1. Create tenant1 and tenant2. 
2. Create a project under tenant1 or tenant2
3. Enable quota for cpu memory disk ....
3. Create a group and add role superadmin
4. Create a user and add it to the group.
5. Login with the newly created user in the service portal. Take multiple items which go over the allocated quota

Actual results:

User is able to provision all items and go over quota. 

Expected results:
The catalog item which goes over quota should be cancelled

Comment 2 ldomb 2016-12-04 00:22:23 UTC
Created attachment 1227803 [details]
quota

Comment 3 Tina Fitzgerald 2017-05-11 21:46:32 UTC
Quota does not currently support consideration of in flight provision requests. This should be an RFE.

Comment 4 Jim Sisul 2017-06-27 21:21:06 UTC
The customer has requested an update on this issue.  They are still seeing this problem in production.

Do we need to provide any additional information in order to turn this into an RFE?

Are there any workarounds the customer can employ to prevent provisioning from running over quota?

Thanks for your help,

--Jim

JAMES P. SISUL
SENIOR TECHNICAL ACCOUNT MANAGER
TELCO AND FINANCIAL SERVICES
Red Hat 

jsisul
O (312)477-4348

M (913)484-8310

Comment 5 Tina Fitzgerald 2017-08-07 16:43:30 UTC
Hi Jim,

We're close to having a solution for this issue.
https://github.com/ManageIQ/manageiq/pull/15466

Thanks,
Tina

Comment 7 Tina Fitzgerald 2017-11-21 21:29:51 UTC
Hi Jim,

We've resolved this issue in 5.7.
https://bugzilla.redhat.com/show_bug.cgi?id=1456819

Thanks,
Tina

Comment 9 Tina Fitzgerald 2018-01-22 20:24:31 UTC
Hi Jim,

I see that the above referenced case is attached to 2 tickets.

Can we track it here: 
https://bugzilla.redhat.com/show_bug.cgi?id=1489507

Also, it's important to note that there's the Automate ManageIQ Domain method: /System/CommonMethods/QuotaMethods/Used code change that's necessary for the active_provisions calculations fix.

Thanks,
Tina