nova/doc/api_samples/os-simple-tenant-usage
Lucian Petrut 70b4cdce68 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)
(cherry picked from commit 133b194ba0)
2019-01-22 18:09:21 +01:00
..
v2.40 Fix os-simple-tenant-usage result order 2019-01-22 18:09:21 +01:00
simple-tenant-usage-get-detail.json api-ref: Example verification for os-simple-tenant-usage.inc 2016-08-09 23:52:42 +00:00
simple-tenant-usage-get-specific.json Drop the use of magic openstack project_id 2016-03-08 19:34:56 +00:00
simple-tenant-usage-get.json Drop the use of magic openstack project_id 2016-03-08 19:34:56 +00:00