Bug 1527695

Summary: Virtual Machine CPU States chart is not correct when some numbers are 0
Product: Red Hat CloudForms Management Engine Reporter: Yuri Rudman <yrudman>
Component: UI - OPSAssignee: Robin Knaur <rknaur>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: hkataria, lavenel, mpovolny, ndhandre, obarenbo, rknaur, simaishi
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:33:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
good1
none
good2
none
broken
none
DB dump none

Description Yuri Rudman 2017-12-19 23:31:32 UTC
Description of problem:

'Virtual Machine CPU States' chart does not work correctly when some numbers are 0. 
1. When both metric are shown - red line for 12/01-12/11 should be 0
2. '% Used' show different data for 12/15-12/18 if shown alone vs together with '%bReady'
Note: tooltips are correct in both cases.


Steps to reproduce:
1. Navigate to VM named "cu-24x7"
2. Monitoring -> Utilization
3. Change 'Show' to 3 weeks

Comment 2 Yuri Rudman 2017-12-19 23:33:11 UTC
Created attachment 1370185 [details]
good1

Comment 3 Yuri Rudman 2017-12-19 23:34:20 UTC
Created attachment 1370186 [details]
good2

Comment 4 Yuri Rudman 2017-12-19 23:35:05 UTC
Created attachment 1370187 [details]
broken

Comment 5 Yuri Rudman 2017-12-19 23:37:05 UTC
Created attachment 1370188 [details]
DB dump

Comment 6 Sudhir Mallamprabhakara 2017-12-20 14:36:50 UTC
*** Bug 1527694 has been marked as a duplicate of this bug. ***

Comment 9 Robin Knaur 2019-01-07 12:46:53 UTC
I was able to reproduce it. I am pretty sure that the data are correct. The 'Virtual Machine CPU States' chart is using Stacked Area chart, that should behave exactly like this. It aggregates the individual values.

I agree that this is not intuitive, so I can replace Stacked Area charts for Area charts in the definitions that would not aggregate values.

Comment 10 Robin Knaur 2019-01-07 12:59:50 UTC
https://github.com/ManageIQ/manageiq/pull/18333

Comment 12 Nandini Chandra 2019-07-03 20:02:28 UTC
Verified in 5.11.0.10

Comment 14 errata-xmlrpc 2019-12-12 13:33:21 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-2019:4199