Bug 1552314

Summary: Metrics collection from an OpenShift 3.7 cluster frequently fails with "Hawkular metrics service unavailable: undefined method `keys' for nil:NilClass"
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: C&U Capacity and UtilizationAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Einat Pacifici <epacific>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: asimonel, bsorota, clasohm, cpelland, epacific, greartes, jocarter, niroy, obarenbo, pmcgowan, rspagnol, simaishi, smallamp
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.1.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1537195 Environment:
Last Closed: 2018-04-11 17:46:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On: 1537195    
Bug Blocks: 1554897    

Comment 2 CFME Bot 2018-03-06 22:52:44 UTC
New commits detected on ManageIQ/manageiq-providers-kubernetes/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-kubernetes/commit/6b93f5476342e6368445bcf6da335fd00c4c4547
commit 6b93f5476342e6368445bcf6da335fd00c4c4547
Author:     Mooli Tayer <mtayer>
AuthorDate: Mon Jan  8 11:51:31 2018 -0500
Commit:     Mooli Tayer <mtayer>
CommitDate: Mon Jan  8 11:51:31 2018 -0500

    Merge pull request #204 from yaacov/do-not-try-to-proccess-when-no-metrics-returned

    Don't try to parse empty data set returned from hawkualr
    (cherry picked from commit 9c83dae5e0dba4d08d5b67d553c932a2ec13088f)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552314

 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb | 2 +
 1 file changed, 2 insertions(+)


https://github.com/ManageIQ/manageiq-providers-kubernetes/commit/73a8d776f6eb044e95e040ff43533577677a5525
commit 73a8d776f6eb044e95e040ff43533577677a5525
Author:     Mooli Tayer <mtayer>
AuthorDate: Tue Jan 30 11:15:23 2018 -0500
Commit:     Mooli Tayer <mtayer>
CommitDate: Tue Jan 30 11:15:23 2018 -0500

    Merge pull request #227 from yaacov/remove-stucktrace-when-pod-has-no-metrics

    Do not raise an error when metrics are missing for one object
    (cherry picked from commit c83b42ae4af3a49d3c6a562510aff02210a24ac5)

    https://bugzilla.redhat.com/show_bug.cgi?id=1552314

 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture.rb | 7 +-
 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb | 2 +-
 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/prometheus_capture_context.rb | 2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)


https://github.com/ManageIQ/manageiq-providers-kubernetes/commit/cdc323e74a8efe921f8c5133b6c4518722b8ea82
commit cdc323e74a8efe921f8c5133b6c4518722b8ea82
Author:     Beni Cherniavsky-Paskin <cben>
AuthorDate: Wed Jan 31 10:11:42 2018 -0500
Commit:     Beni Cherniavsky-Paskin <cben>
CommitDate: Wed Jan 31 10:11:42 2018 -0500

    Merge pull request #228 from yaacov/recatch-no-metrics

    recatch the metrics not found error
    (cherry picked from commit 9769743ea2243943ee7f9a01b078676ac75ea109)

    https://bugzilla.redhat.com/show_bug.cgi?id=1552314

 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture.rb | 4 +-
 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb | 2 +-
 app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/prometheus_capture_context.rb | 2 +
 3 files changed, 5 insertions(+), 3 deletions(-)

Comment 7 errata-xmlrpc 2018-04-11 17:46:34 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/RHBA-2018:0556