← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1238519] Re: flavor list doesn't handle MarkerNotFound

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
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/1238519

Title:
  flavor list doesn't handle MarkerNotFound

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The flavor API supports the "?marker=ID" option to return the flavor
  list starting from a specific point.    ID in this case  has to be the
  DB id value, not the "flavorid"   which is an arbitrary string (a uuid
  be default).

  The api/compute/flavors.py does not catch the MarkerNotFound exception
  raised by the DB layer when the specified flavor does not exist,
  resulting in a 404 error and an error in the API logs:

  
  Note that the DB ID of flavors is not returned as part of the flavor API, so its hard to see how anyone can really make use of this feature as it stands.  In addition to handling the exception (to avoid an error being logged, and give a better error message to the user)  perhaps the DB query should match on ">="  rather than "==", given that the user can never knwo what IDs are valid.

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