← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1796689] [NEW] Incorrect results for tenant usage

 

Public bug reported:

nova usage-list can return incorrect results, having resources counted
twice. This only occurs when using the 2.40 microversion or later.

http://paste.openstack.org/raw/731560/

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.

** Affects: nova
     Importance: Undecided
     Assignee: Lucian Petrut (petrutlucian94)
         Status: In Progress

** Changed in: nova
     Assignee: (unassigned) => Lucian Petrut (petrutlucian94)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1796689

Title:
  Incorrect results for tenant usage

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  nova usage-list can return incorrect results, having resources counted
  twice. This only occurs when using the 2.40 microversion or later.

  http://paste.openstack.org/raw/731560/

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1796689/+subscriptions


Follow ups