Bug 1023622

Summary: Horizon UI reports incorrect value for VCPU usage.
Product: Red Hat OpenStack Reporter: Dharmit Shah <dshah>
Component: python-django-horizonAssignee: Julie Pichon <jpichon>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: aortega, athomas, dshah, hateya, jpichon, mrunge, sankarshan, sputhenp, yeylon
Target Milestone: ---   
Target Release: 3.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-09 09:53:40 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:

Description Dharmit Shah 2013-10-26 07:42:30 UTC
Description of problem:
Horizon reports incorrect value for the number of vcpus being used.

Version-Release number of selected component (if applicable):
python-django-horizon-2013.1.3-2.el6ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. No specific steps. Attaching the screenshots
2.
3.

Actual results:
Horizon reports incorrect value for the number of VCPUs being used.

Expected results:
Horizon should report correct value for the number of VCPUs being used.

Additional info:

Comment 3 Matthias Runge 2013-11-18 08:28:21 UTC
This bug was reported against 3.0 and only tested in 3.0.

Comment 4 Julie Pichon 2013-11-20 10:13:40 UTC
Could you confirm which URL(s) are showing inconsistent numbers?

The screenshot attached to this bug report, horizon_inconsistent.png, shows the "Overview" page for the Admin dashboard (/dashboard/admin/), which is meant to show the state of the full system. The project dashboard (/dashboard/project/) on the other hand should only show the data for the selected 'Current project'.

For the numbers in themselves, Horizon normally displays what "nova usage" (for the project) and "nova usage-list" (for the admin view) returns: it would be helpful to also include the results for these commands in the report. Thank you.

Comment 11 Julie Pichon 2013-11-26 16:17:33 UTC
Thank you for the additional information. It's confusing initially but the usage report displays historical data for the current month overall (as indicated by 'Select Current Month: October 2013'), up to the current day, and not what is the status right this moment. You can see a similar behaviour for the nova client command-line tool's output ("Usage from 2013-10-28 to 2013-11-26").

From Havana / RHOS 4.0 onwards it is possible to select a more precise date range via Horizon, down to a single day if desired which may help answer this kind of queries more precisely. As a workaround for now, start and end date can be specified in the nova client if needed (e.g. `nova usage-list --start 2013-10-01 --end 2013-10-31`).

Hope this helps to clarify things.

Comment 12 Julie Pichon 2013-12-09 09:53:40 UTC
Closing based on the previous explanation.