Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1388493 - Console should continue if error encountered gathering metrics
Console should continue if error encountered gathering metrics
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.3.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Samuel Padgett
Yadan Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-25 09:40 EDT by Matt Wringe
Modified: 2017-07-24 10 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The web console handling of error responses from Hawkular Metrics was made more robust. The web console will retry on the first error updating the metrics charts. If errors persist, the web console will show an alert at the top of the page with a "Retry" link. This also lets you continue viewing metrics already fetched if a later error occurrs updating the data.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-12 15:07:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 18:50:07 EDT

  None (edit)
Description Matt Wringe 2016-10-25 09:40:34 EDT
Description of problem:
The console periodically gathers metrics from the Hawkular Metrics endpoint. If an error is encountered, this will stop any further gathering of metrics.

This means for the console to start displaying metrics again, the user has to reload their browser or change console tabs.

It would be beneficial if the console could handle this situation in a better manner. We should be trying to gather metrics at the next interval in case the error has resolved itself, as well as potentially retrying once right after an error occurred.
Comment 2 openshift-github-bot 2016-11-28 14:31:41 EST
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/5c580bb8a7f85d952a35b39b9e8caca44c1c071d
Bug 1388493 - Better handling of metrics errors

If the first request for metrics fails, show an empty state error message.
Otherwise show an alert if more than one consecutive request fails. The
alert has a retry link.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1388493
Comment 3 Yadan Pei 2016-12-05 01:00:57 EST
Will check when new puddle is ready
Comment 4 Yanping Zhang 2016-12-05 05:40:34 EST
Which OCP puddle contains the fix for the bug? And to verify the bug, what kind of error should I simulate so that I can see the alert info?
Comment 5 Samuel Padgett 2016-12-05 07:51:36 EST
Sorry, I thought the bug was opened against origin. Changing status to MODIFIED.
Comment 6 Troy Dawson 2017-01-20 18:00:34 EST
This has been merged into ocp and is in OCP v3.5.0.7 or newer.
Comment 7 Yanping Zhang 2017-01-22 05:27:19 EST
Checked on OCP v3.5.0.7
Check pod's metrics on web console, metrics chart is updated periodically when metrics endpoint is working. When the metrics endpoint doesn't work, the pod metrics chart won't update and when gather metrics at the next interval, there is an alert info showing with a "Retry" link, user could click it to retry, once the metrics endpoint is ok, the error will disappear:
"An error occurred updating metrics for pod nodejs-1-d7php. Retry"

The bug has been fixed, so move it to verified.
Comment 9 errata-xmlrpc 2017-04-12 15:07:41 EDT
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-2017:0884

Note You need to log in before you can comment on or make changes to this bug.