Description of problem: Automate Engine service_template_provision_request service model missing include of MiqAeServiceMiqProvisionMixin which causes check_quota(:active_provisions_by_tenant) for a Service Request to fail with: undefined method `check_quota' for #<MiqAeMethodService::MiqAeServiceServiceTemplateProvisionRequest:0x007fe1d81c86f0> How reproducible: Always Steps to Reproduce: 1.Create a Service request. 2.From the vmdb folder, run 'bin/rails c' 3.Setup $evm by running '$evm=MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new)' 4. 'request = $evm.vmdb('miq_request', <Id of Service request in step 1>)' 5. 'request.check_quota(:active_provisions_by_tenant)' Actual results: undefined method `check_quota' for #<MiqAeMethodService::MiqAeServiceServiceTemplateProvisionRequest:0x007fe1d81c86f0> Expected results: => {: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=>{}}}
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 it to Low/Low.
https://github.com/ManageIQ/manageiq-automation_engine/pull/69
New commit detected on ManageIQ/manageiq-automation_engine/master: https://github.com/ManageIQ/manageiq-automation_engine/commit/05ef42b745d206033d06fb6db1c0dc67c7c6e632 commit 05ef42b745d206033d06fb6db1c0dc67c7c6e632 Author: Tina Fitzgerald <tfitzger> AuthorDate: Wed Sep 13 13:32:00 2017 -0400 Commit: Tina Fitzgerald <tfitzger> CommitDate: Wed Sep 13 13:32:00 2017 -0400 Add miq_provision_quota mixin to Service Template Provision Request Service model. https://bugzilla.redhat.com/show_bug.cgi?id=1491409 .../miq_ae_service_service_template_provision_request.rb | 3 +++ 1 file changed, 3 insertions(+)
Verified in 5.9.0.5 using the steps provided by Tina.