Bug 1361061
Summary: | Failed to show metrics on web console due to the clocks between machine running the console and the machine running Hawkular Metrics are out of sync | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | chunchen <chunchen> | ||||||
Component: | Hawkular | Assignee: | Samuel Padgett <spadgett> | ||||||
Status: | CLOSED ERRATA | QA Contact: | chunchen <chunchen> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 3.2.1 | CC: | aos-bugs, jforrest, mwringe, tdawson, wmeng, wsun, xiazhao | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: |
Cause:
The web console previously used the client's clock to calculate the start time for displaying metrics.
Consequence:
If the client's clock was more than one hour faster than the server clock, an occur would occur opening the metrics tab in the web console.
Fix:
The web console now uses the server time for calculating start and end times for metrics.
Result:
Metrics will display properly even if the client clock is out of sync with the server.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-09-27 09:41:55 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: | |||||||||
Attachments: |
|
Description
chunchen
2016-07-28 09:39:40 UTC
Where is this error message showing up exactly? In one of the metric component logs? In the browser's console logs? There are also no screenshots attached like mentioned in the bz. Created attachment 1186221 [details]
console screenshot 2
Created attachment 1186222 [details]
console screenshot 1
Sorry for forgetting to add the attachments, they are existed now. Ah, thank you. I think I know the problem now. The browser is using its own clock to send the 'start' time in that response, and the end time is not specified. When the end value is not specified, it means that Hawkular Metrics will use its own system clock to generate this value. What is most likely happening here is that the clocks between the machine running the console and the machine running Hawkular Metrics are out of sync and the end value (generated by Hawkular Metrics) is before the start value (generated by the console). Can you please verify if the clocks between these system are indeed off by a large margin? The upstream issue for this is https://issues.jboss.org/browse/HWKMETRICS-358 Once that is done, the console can use relative timestamps and this type of issue cannot occur. Yes, The issue can be reproduced when the clocks are out of sync between these system even if I tested with metrics in V1 registry(brew-pulp-docker01.web.prod...com:8888), so it's not related to V2 registry, I am removing the keywords in the bug title. For this root cause, the bug is not a testblocker any more. The metrics containers now support relative timestamps. The only other piece is for the console in OSE 3.3 to be updated to use it. Its already working in Origin with relative timestamps. This has been merged into ose and is in OSE v3.3.0.22 or newer. It's fixed, checked with the latest hawkular 3.3.0 image(70c30be69f7d), so mark it as verified. 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-2016:1933 |