nova/nova/api
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
..
ec2 Fix bug 1006664: describe non existent ec2 keypair 2012-06-08 10:57:21 -07:00
metadata Fix OpenStack Capitalization 2012-03-15 14:58:50 -07:00
openstack Fix simple_tenant_usage's handing of future end times 2012-09-06 14:35:47 -07:00
__init__.py Removed newly added userdatarequesthandler for OS API, there is no need to add this handler since the existing Ec2 API metadatarequesthandler does the same job 2011-08-15 15:09:42 -07:00
auth.py Allow rate limiting to be disabled via flag 2012-03-19 20:40:45 -07:00
direct.py PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
manager.py Separate metadata api into its own service 2011-11-15 13:27:58 -08:00
validator.py fix restructuredtext formatting in docstrings that show up in the developer guide 2012-03-05 16:18:53 -05:00