Bug 1515979

Summary: Quota - exclude orphaned VMs from used counts
Product: Red Hat CloudForms Management Engine Reporter: Tina Fitzgerald <tfitzger>
Component: ApplianceAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Vatsal Parekh <vparekh>
Severity: low Docs Contact:
Priority: low    
Version: 5.8.0CC: abellott, akarol, jhardy, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: quota
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1518374 (view as bug list) Environment:
Last Closed: 2018-03-06 15:01:44 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: 1518374, 1597531    

Description Tina Fitzgerald 2017-11-21 17:47:59 UTC
Description of problem:
Current quota calculations include orphaned VMs in the used counts.

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


Steps to Reproduce:
1. Setup Quota limits for tenant(values can be 1)
2. Provision a VM and check quota denied message for used counts.
3. Archive an active VM and repeat step 2.
4. Notice the used counts are unchanges.

Actual results:
Orphaned VMs included in used count

Expected results:
Orphaned VMs excluded in used count

Additional info:

Comment 2 Tina Fitzgerald 2017-11-21 18:01:53 UTC
This PR should resolve the issue:
https://github.com/ManageIQ/manageiq-content/pull/132

Comment 3 Dave Johnson 2017-11-21 18:02:42 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 5 Vatsal Parekh 2017-12-14 12:57:27 UTC
Able to verify this on Version 5.9.0.13.20171212214416_f4f190a