Bug 1441271

Summary: queue_name_for_metrics_collection raises an exception when ems is nil
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: C&U Capacity and UtilizationAssignee: Adam Grare <agrare>
Status: CLOSED ERRATA QA Contact: Einat Pacifici <epacific>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: akarol, cpelland, fsimonce, jhardy, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1439888 Environment:
Last Closed: 2017-05-31 14:52:06 UTC Type: ---
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: 1439888    
Bug Blocks:    

Comment 2 CFME Bot 2017-04-11 14:21:29 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/9f9249495efd797fca310cfaa887db52b302d3bd

commit 9f9249495efd797fca310cfaa887db52b302d3bd
Author:     Jason Frey <fryguy9>
AuthorDate: Mon Apr 10 17:50:10 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Apr 11 10:17:37 2017 -0400

    Merge pull request #14718 from agrare/bz_1439888_metrics_collection_nil_queue_name
    
    Handle exception when a metrics target doesn't have an ext_management_system
    (cherry picked from commit d7a82f2b0ccf7ca3394fe73bfa768b4417698ae5)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1441271

 app/models/metric/capture.rb                | 10 +++++++---
 app/models/metric/ci_mixin/capture.rb       | 23 ++++++++++++-----------
 spec/models/metric/ci_mixin/capture_spec.rb |  6 +++---
 3 files changed, 22 insertions(+), 17 deletions(-)

Comment 4 errata-xmlrpc 2017-05-31 14:52:06 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:1367