Bug 1337293

Summary: Incorrect 'CPU used' in total column in Chargeback reports
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: dajohnso, gtanzill, jhardy, nachandr, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: report:chargeback
Fixed In Version: 5.6.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 16:04:06 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
Chargeback report
none
Verified : screenshot of report with CPU Usage in MHZ none

Description Nandini Chandra 2016-05-18 17:56:07 UTC
Description of problem:
-----------------------
It looks like the value in the 'CPU used' in the Totals column is being rounded off to the nearest GHz value.

In the attached chargeback report,CPU used  for cu-24x7 on 05/13/2016 is 1 GHz
and CPU used for cu-9-5 is 666 MHz.The total 'CPU Used' reported for that day 
is 2 GHz.


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


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


Steps to Reproduce:
------------------
1.Manage a provider.Enable C&U collection for the provider.
2.Create a chargeback report 


Actual results:
-----------------
Incorrect 'CPU used' in total column in Chargeback reports 


Expected results:
-----------------
'CPU used' in total column in Chargeback reports should be accurate. 


Additional info:
----------------

Comment 2 Nandini Chandra 2016-05-18 17:56:58 UTC
Created attachment 1159019 [details]
Chargeback report

Comment 6 CFME Bot 2016-05-25 16:15:27 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/5662c9aaee8f595f5d5e991cf83f2672ff000a2e

commit 5662c9aaee8f595f5d5e991cf83f2672ff000a2e
Author:     Tamara Ledesma Rico <tamledric>
AuthorDate: Wed May 25 13:22:48 2016 +0200
Commit:     Tamara Ledesma Rico <tamledric>
CommitDate: Wed May 25 17:13:58 2016 +0200

    Add a new default format to cpu_used metrics
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1337293

 db/fixtures/miq_report_formats.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Comment 7 Nandini Chandra 2016-06-12 12:52:40 UTC
Verified in 5.6.0.10.

Comment 8 Nandini Chandra 2016-06-12 13:54:44 UTC
Created attachment 1167160 [details]
Verified : screenshot of report with CPU Usage in MHZ

Comment 10 errata-xmlrpc 2016-06-29 16:04:06 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-2016:1348