Bug 1531914
Summary: | Quota fails when an active Service request contains an Invalid service_template. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Saif Ali <saali> | ||||
Component: | Automate | Assignee: | Tina Fitzgerald <tfitzger> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ganesh Hubale <ghubale> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 5.8.0 | CC: | akarol, cpelland, ghubale, jocarter, mkanoor, obarenbo, rovalent, saali, simaishi, tfitzger, vparekh | ||||
Target Milestone: | GA | Keywords: | TestOnly | ||||
Target Release: | 5.10.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1533217 1534589 (view as bug list) | Environment: | |||||
Last Closed: | 2018-06-21 20:46:14 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: | 1533217, 1534589 | ||||||
Attachments: |
|
Description
Saif Ali
2018-01-06 16:52:27 UTC
Created attachment 1377944 [details]
active_service_request.rb
Please run the attached script from an appliance console using "bin/rails r <script_name>"
The output should display Active Service Template Provision Requests and specifically invalid ones that no longer have a relationship to the service_template.
These invalid requests are the ones causing the issue and should likely be deleted.
Greg, I checked and there is no automate role defined for that zone. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/0d6e97436173326912dd8fdd6e121bf8fed9ca53 commit 0d6e97436173326912dd8fdd6e121bf8fed9ca53 Author: Tina Fitzgerald <tfitzger> AuthorDate: Mon Jan 8 14:33:58 2018 -0500 Commit: Tina Fitzgerald <tfitzger> CommitDate: Mon Jan 8 14:33:58 2018 -0500 Prevent quota error for invalid service_template. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531914 app/models/mixins/miq_provision_quota_mixin.rb | 1 + spec/models/service_template_provision_request_quota_spec.rb | 6 ++++++ 2 files changed, 7 insertions(+) |