Bug 1390746

Summary: Resource used value reported in chargeback report is the hourly average instead of the total daily value
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: ReportingAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED NOTABUG QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: jhardy, lpichler, obarenbo
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: chargeback
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-02 17:48:22 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:
Attachments:
Description Flags
56 Chargeback report
none
57 Chargeback report none

Description Nandini Chandra 2016-11-01 19:41:37 UTC
Created attachment 1216223 [details]
56 Chargeback report

Description of problem:
------------------------
In 5.7, the used value reported for VM resources is the hourly average value instead of the total daily value.

In 5.6, the used value is the total daily value.

I have attached a chargeback report from 5.6 and 5.7.

The VM in question in cu-24x7, which runs 24x7.Both my 5.6 and 5.7 are managing the same vsphere provider on which this VM is running.Both the appliances have 24 hourly rollups in the DB for 10/28/2016.


CPU used on 10/28/2016:
5.6 , 63.24 GHz 
5.7 , 2.64 GHz

The reported value for CPU used for 5.7 is 2.64 GHz which is 63.24/24.


Version-Release number of selected component (if applicable):
--------------------------------------------------------------
5.7.0.7


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1.Enable C&U collection for a provider
2.Collect at least 24 hours of C&U data
3.Generate a chargeback report.


Actual results:
---------------
Resource used value reported in chargeback report is the hourly average value.


Expected results:
----------------
Resource used value reported in chargeback report should be the total daily value.


Additional info:
----------------
This issue applies to all resources and not just CPU.

Comment 2 Nandini Chandra 2016-11-01 19:42:16 UTC
Created attachment 1216224 [details]
57 Chargeback report