Bug 1337293 - Incorrect 'CPU used' in total column in Chargeback reports
Summary: Incorrect 'CPU used' in total column in Chargeback reports
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Libor Pichler
QA Contact: Nandini Chandra
URL:
Whiteboard: report:chargeback
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-18 17:56 UTC by Nandini Chandra
Modified: 2016-08-30 21:15 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 16:04:06 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Chargeback report (37.92 KB, application/pdf)
2016-05-18 17:56 UTC, Nandini Chandra
no flags Details
Verified : screenshot of report with CPU Usage in MHZ (142.47 KB, image/png)
2016-06-12 13:54 UTC, Nandini Chandra
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

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


Note You need to log in before you can comment on or make changes to this bug.