nova/nova/api/openstack
Lucian Petrut 133b194ba0 Fix os-simple-tenant-usage result order
nova usage-list can return incorrect results, having resources counted
twice. This only occurs when using the 2.40 microversion or later.

This microversion introduced pagination, which doesn't work properly.
Nova API will sort the instances using the tenant id and instance uuid,
but 'os-simple-tenant-usage' will not preserve the order when returning
the results.

For this reason, subsequent API calls made by the client will use the
wrong marker (which is supposed to be the last instance id), ending
up counting the same instances twice.

Change-Id: I6c7a67b23ec49aa207c33c38580acd834bb27e3c
Closes-Bug: #1796689
(cherry picked from commit afc3a16ce3)
2018-10-29 08:15:47 +00:00
..
compute Fix os-simple-tenant-usage result order 2018-10-29 08:15:47 +00:00
placement Use unique consumer_id when doing online data migration 2018-10-17 09:24:13 -04:00
__init__.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00
api_version_request.py API: add support to abort queued live migration in microversion 2.65 2018-07-16 13:57:11 -04:00
auth.py Noauth should also use request_id from compute_req_id.py 2018-04-04 14:21:01 -04:00
common.py conf: Remove deprecated 'allow_instance_snapshots' opt 2018-03-12 14:40:11 +00:00
identity.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
requestlog.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00
urlmap.py Use of six.PY3 should be forward compatible 2016-01-17 03:32:34 +00:00
versioned_method.py Implement microversion support on api methods 2014-12-05 09:54:41 +08:00
wsgi.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00
wsgi_app.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00