Bug 1906304

Summary: Unexpected value NaN parsing x/y attribute when viewing pod Memory/CPU usage chart
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: anpicker, aos-bugs, jokerman, ralpert, rawagner, spadgett, yanpzhan
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Parsing undefined values results in NaN exception Consequence: Chart tooltip shows back box with no values Fix: Specify start date when fetching data to make sure the results are synced. Make sure we do not parse undefined values. Result: Chart toolip shows correct values
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:35:01 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 Flags
no value hovering charts none

Description Yadan Pei 2020-12-10 08:48:41 UTC
Created attachment 1738137 [details]
no value hovering charts

Description of problem:
When viewing CPU/Memory usage charts on Pod Details page, 

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-12-09-112139

How reproducible:
Always

Steps to Reproduce:
1. cluster admin views console pod CPU/Memory usage charts via Workloads -> Pods -> choose 'openshift-console' and click on one console pod
2.
3.

Actual results:
1. at the beginning, CPU/Memory usage is shown and hover the charts can show correct value at one time, after several seconds, hovering will show black square, no values are shown, in browser console we can see some warnings:
Unexpected value NaN parsing y attribute. vendors~main-chunk-87bc5be0297594a8b4aa.min.js:169353
Unexpected value NaN parsing x attribute. vendors~main-chunk-87bc5be0297594a8b4aa.min.js:169353

Expected results:
1. charts value can always show when hovering 

Additional info:

Comment 1 ralpert 2020-12-15 20:35:09 UTC
This seems to be an intermittent issue. I reached out to PatternFly because I'm stumped. The data we're passing in looks ok.

Comment 2 ralpert 2020-12-18 16:36:03 UTC
I haven't heard anything from PatternFly yet. It looks like we're passing good data into PatternFly functions, and that they're not always returning information. I'll bug them again today or Monday if I don't hear back.

Comment 3 ralpert 2021-01-04 15:01:44 UTC
The functions we're using from PatternFly aren't intended to be third-party APIs. PatternFly suggested finding a way to reproduce it with the standard PatternFly component, since we're using a custom tooltip. I brought up switching over to PatternFly tooltips in scrum and there didn't seem to be a reason we're using custom code here. I'll try passing in the PatternFly tooltip instead and see what happens.

Comment 8 Siva Reddy 2021-03-01 00:32:18 UTC
Version
4.8.0-0.nightly-2021-02-26-221801

Steps to Reproduce:
1. cluster admin views console pod CPU/Memory usage charts via Workloads -> Pods -> choose 'openshift-console' and click on one console pod
2. intermittently checked the graphs page for 45 mins

   Now the charts value are always showing up when hovering over the data points on the graph.

Comment 11 errata-xmlrpc 2021-07-27 22:35:01 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), 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-2021:2438