Bug 1441272

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: GAKeywords: ZStream
Target Release: 5.7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.3.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1439888 Environment:
Last Closed: 2017-06-28 14:59:55 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: 1439888    
Bug Blocks:    

Comment 2 Adam Grare 2017-04-11 15:36:06 UTC
Customer is observing containers with nil ems_id and old_ems_id being created as of today, requesting a hotfix for this issue.

Comment 3 CFME Bot 2017-04-11 20:31:02 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/add1b9465d0b8c292b5b6e17cc8a3a4ce6c54d17

commit add1b9465d0b8c292b5b6e17cc8a3a4ce6c54d17
Author:     Jason Frey <fryguy9>
AuthorDate: Mon Apr 10 17:50:10 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Tue Apr 11 16:23:21 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=1441272

 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 6 errata-xmlrpc 2017-06-28 14:59:55 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:1601