Bug 1259356

Summary: Average instead of maximum values in host heatmap report
Product: [Retired] ovirt-engine-reports Reporter: Karolína Hajná <khajna>
Component: ReportsAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: bugs, gklein, khajna, lsurette, lsvaty, pstehlik, rbalakri, Rhev-m-bugs, sradco, yeylon, ykaul, ylavi
Target Milestone: ovirt-3.6.2Flags: rule-engine: ovirt-3.6.z+
ylavi: planning_ack+
sradco: devel_ack+
pnovotny: testing_ack+
Target Release: 3.6.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhevm-reports-3.6.2-1.el6ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:14:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Reports RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1132487    
Attachments:
Description Flags
report with average CPU usage
none
report with maximum CPU usage
none
HeatMap report - CPU Maximum
none
HeatMap report - CPU Average none

Description Karolína Hajná 2015-09-02 12:57:16 UTC
Description of problem:
When maximum values are selected in host heatmap report IC, average values are shown in the report instead.

Version-Release number of selected component (if applicable):
3.6.0-0.12.master.el6

How reproducible:
100%

Steps to Reproduce:
1. Add a host to your engine
2. Stress the host CPU/Memory for a while
3. Open host heatmap report and select maximum values in IC
4. Compare real data with data in report

Actual results:
Average values in report

Expected results:
Maximum values in report

Comment 1 Yaniv Lavi 2015-09-03 08:33:35 UTC
Can you attach screenshots?

Comment 2 Karolína Hajná 2015-09-03 09:41:46 UTC
Created attachment 1069718 [details]
report with average CPU usage

Comment 3 Karolína Hajná 2015-09-03 09:42:12 UTC
Created attachment 1069719 [details]
report with maximum CPU usage

Comment 5 Shirly Radco 2015-11-11 13:24:21 UTC
Hi,

Can you please attach the actual cpu values for the hosts in your screensuts?
or send me a db dump if you are not sure how?

Thank you.

Comment 6 Karolína Hajná 2015-11-13 08:01:41 UTC
Hi, unfortunatelly I already don't have the engine nor hosts. But from what I remember I used stress for a minute or two each hour. The CPU/RAM usage was up to above 90%. This was shown correctly in report for max values. But report with average values was exactly the same even though the CPU was not used at all for the rest of time (~58 minutes).

Comment 7 Shirly Radco 2015-12-02 11:11:21 UTC
Hi Karolína,

I checked the Heatmap reports and I don't see the issue you encountered.
I attached an example for running the report on the same hosts on the same time frame and I get different results for average and Maximum.

Please try checking this again and update the bug with a db dump.

Comment 8 Shirly Radco 2015-12-02 11:12:55 UTC
Created attachment 1101415 [details]
HeatMap report - CPU Maximum

Comment 9 Shirly Radco 2015-12-02 11:13:39 UTC
Created attachment 1101416 [details]
HeatMap report - CPU Average

Comment 10 Shirly Radco 2015-12-03 12:58:52 UTC
Sorry, I found the issue.

Comment 11 Lukas Svaty 2016-01-07 15:13:24 UTC
verified in rhevm-reports-3.6.2.1-1.el6ev.noarch