nova/nova/api/openstack
RongzeZhu 4ac2dcc36b Fix simple_tenant_usage's handing of future end times
Fixes bug #1043999

simple_tenant_usage returns the usage in the range between the supplied
start and end query parameters. The _hours_for() method calculates the
number of hours the instance was running in this range, even if the end time
is in the future.

By default, python-novaclient requests usage between 4 weeks ago and tomorrow.
This means we a report which accounts for 24 hours of extra running time for
each currently running instance. Fix this by clamping the period of the
returned report at the current time.

Change-Id: I61c211fd85b729aaeaac6ef24644ee19eb5bb6b0
(cherry picked from commit 869443f41c)
2012-09-06 14:35:47 -07:00
..
compute Fix simple_tenant_usage's handing of future end times 2012-09-06 14:35:47 -07:00
volume Volumes API now uses underscores for attrs 2012-03-26 13:25:38 -07:00
__init__.py Handle local & remote exceptions consistently. 2012-07-18 20:00:25 +01:00
auth.py Remove unused imports and variables from OS API 2012-02-29 08:20:20 +00:00
common.py Fix marker behavior for flavors 2012-07-12 14:18:13 +02:00
extensions.py Fix XML namespaces for limits extensions and versions 2012-03-07 22:48:33 +00:00
urlmap.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
wsgi.py Send a more appropriate error response for 403 in osapi 2012-03-24 19:29:08 -07:00
xmlutil.py Fix XML namespaces for limits extensions and versions 2012-03-07 22:48:33 +00:00