Bug 1491409
| Summary: | Add miq_provision_quota_mixin to Service Template Provision Request service model. | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Tina Fitzgerald <tfitzger> | |
| Component: | Automate | Assignee: | Tina Fitzgerald <tfitzger> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dmitry Misharov <dmisharo> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 5.7.0 | CC: | cpelland, jhardy, mkanoor, obarenbo, tfitzger | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.9.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1493207 (view as bug list) | Environment: | ||
| Last Closed: | 2018-03-06 15:06:17 UTC | Type: | Bug | |
| 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: | ||||
| Bug Blocks: | 1493207 | |||
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. 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. |
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=>{}}}