OS API: 404 when using a non-existing flavor in the filter for list servers

Bug #919426 reported by Daryl Walleck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Brian Waldon

Bug Description

When I pass a flavor that isn't in my Nova system as a filter for a list server request, a 404 is returned. I'm assuming this is because it tries to do a lookup on the flavor first. I would expect this to just return the empty list.

Example:

curl -i -H "X-Auth-Token: 2dc9ffd0-3995-4cfb-a579-7cd8f336a663" http://localhost:8774/v1.1/15/servers?flavor=999
HTTP/1.1 404 Not Found
Content-Length: 78
Content-Type: application/json; charset=UTF-8
Date: Fri, 20 Jan 2012 22:30:22 GMT
Connection: close

{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Yep, this makes sense.

Changed in nova:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Brian Waldon (bcwaldon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3256

Changed in nova:
status: Triaged → In Progress
Brian Waldon (bcwaldon)
Changed in nova:
milestone: none → essex-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/3256
Committed: http://github.com/openstack/nova/commit/d7448fc86a929226a34e92ef77684441f451edaf
Submitter: Jenkins
Branch: master

commit d7448fc86a929226a34e92ef77684441f451edaf
Author: Brian Waldon <email address hidden>
Date: Fri Jan 20 17:02:19 2012 -0800

    Handle FlavorNotFound on server list w/ filter

    Fix bug 919426

    Change-Id: I1f450fd7ed28837b664aa81f4dd833e3433cd126

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.