Bug 1493207

Summary: Add miq_provision_quota_mixin to Service Template Provision Request service model.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: akarol, cpelland, jhardy, mkanoor, obarenbo, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.2.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1491409 Environment:
Last Closed: 2017-10-24 00:41:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1491409    
Bug Blocks:    

Comment 2 CFME Bot 2017-09-19 15:16:29 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/1bc5eb462244e74babd3eadea088be3650316438

commit 1bc5eb462244e74babd3eadea088be3650316438
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Thu Sep 14 16:01:47 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Sep 19 11:15:27 2017 -0400

    Merge pull request #69 from tinaafitz/add_quota_mixin
    
    Add missing service model change for calculating active quota counts for Service requests.
    (cherry picked from commit ca32a7918cd0e9a5664e5eb4b44d9b11458037e6)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1493207

 .../miq_ae_service_service_template_provision_request.rb               | 3 +++
 1 file changed, 3 insertions(+)

Comment 3 Milan Falešník 2017-10-03 11:52:18 UTC
Verified in 5.8.2.1:

irb(main):004:0> request = $evm.vmdb(:miq_request).all.first
=> #<MiqAeServiceServiceTemplateProvisionRequest:0x5b83e2c ...>
irb(main):005:0> request.check_quota(:active_provisions_by_tenant)
=> {:count=>0, :memory=>0, :cpu=>0, :storage=>0, :ids=>[], :class_name=>"MiqProvisionRequest", :active=>{:class_name=>"MiqProvision", :ids=>[], :storage_by_id=>{}, :memory_by_host_id=>{}, :cpu_by_host_id=>{}, :vms_by_storage_id=>{}}}

Comment 5 errata-xmlrpc 2017-10-24 00:41:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3005