Bug 1386823 - Toggling memory graph time range on "Metrics" tab leads to poor Y-Axis scaling
Summary: Toggling memory graph time range on "Metrics" tab leads to poor Y-Axis scaling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
: 1386820 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 16:47 UTC by Justin Pierce
Modified: 2017-03-08 18:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In some cases, the Y-axis values would not adjust to fit the data when changing the time range while looking at metrics for a pod. The Y-axis now will scale appropriately to fit the data when the time range is changed.
Clone Of:
Environment:
Last Closed: 2017-01-18 12:43:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
After toggling time range, CPU graph shows max=11. Reloading page gives max=550 and eliminates cropping (65.55 KB, image/png)
2016-10-19 16:47 UTC, Justin Pierce
no flags Details
cpu/memory-issue (126.50 KB, image/png)
2016-10-20 11:53 UTC, Yanping Zhang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

Description Justin Pierce 2016-10-19 16:47:04 UTC
Created attachment 1212211 [details]
After toggling time range, CPU graph shows max=11. Reloading page gives max=550 and eliminates cropping

Description of problem:
Toggling back and forth between time ranges on a Pod's metrics tab leads to improper choices being made for the graph's Y-Axis. This can lead to significant cropping / illegibility. 

Version-Release number of selected component (if applicable):
3.3
Firefox 47

How reproducible:
100%

Steps to Reproduce:
1. Start a pod and allow it to build 20 minutes of varied CPU utilization
2. Navigate to the web console's Metric tab for that pod
3. Toggle back and forth between time ranges (1 hour <-> 1 week)

Actual results:
The Y-axis values selected for the new time range lead to significant cropping.

Expected results:
The Y-axis should suit the new data set.

Additional info:

Comment 1 Yanping Zhang 2016-10-20 11:52:21 UTC
Checked on OCP 3.3.1.3, the Y-axis values of all charts for memory, cpu and network have this issue after change time range from "Last week" to "Last hour". Guess that this bug should have the same root cause with bug https://bugzilla.redhat.com/show_bug.cgi?id=1386820

Comment 2 Yanping Zhang 2016-10-20 11:53:34 UTC
Created attachment 1212489 [details]
cpu/memory-issue

Comment 4 Samuel Padgett 2016-10-24 18:52:10 UTC
*** Bug 1386820 has been marked as a duplicate of this bug. ***

Comment 5 Troy Dawson 2016-10-27 16:02:22 UTC
This has been merged into ose and is in OSE v3.4.0.16 or newer.

Comment 7 Yanping Zhang 2016-10-28 10:03:11 UTC
Will continue to verify the this bug after bug 1388833 fixed.

Comment 8 Yanping Zhang 2016-11-01 06:36:25 UTC
Checked on OCP v3.4.0.18. After switch between time range, Y-axis values could scale accordingly, but it took too much time during the chart and value updating accordingly, user had to wait for at least 15 seconds or event longer. Assign it back, pls help to check again.

Comment 9 Samuel Padgett 2016-11-01 12:08:18 UTC
(In reply to Yanping Zhang from comment #8)
> Checked on OCP v3.4.0.18. After switch between time range, Y-axis values
> could scale accordingly, but it took too much time during the chart and
> value updating accordingly, user had to wait for at least 15 seconds or
> event longer. Assign it back, pls help to check again.

Hi, Yanping. If I understand, the chart did not update at all for at least 15 seconds? If so, it sounds like a different performance problem.

Does this happen every time or only once? If you can reproduce, please check the events for the openshift-infra namespace and the logs for the hawkular-metrics pod. I suggest we open a separate bug to track.

Comment 10 Yanping Zhang 2016-11-02 08:46:22 UTC
(In reply to Samuel Padgett from comment #9)

> Hi, Yanping. If I understand, the chart did not update at all for at least
> 15 seconds? If so, it sounds like a different performance problem.
When switch time range, the original chart disappears, only X-axis and Y-axis left, and new chart will show up after wait for about 15 seconds. 

> Does this happen every time or only once? If you can reproduce, please check
> the events for the openshift-infra namespace and the logs for the
> hawkular-metrics pod. I suggest we open a separate bug to track.
This happened every time when I tested last time.
Now I have no logs on hand about this issue, and also could not set up a new env to get events and metrics logs due to bug 1390851, once the metrics can be deployed, I will check again, then will open a bug if reproduce again.

Move this bug to Verified first.

Comment 12 errata-xmlrpc 2017-01-18 12:43:38 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-2017:0066


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