nova/releasenotes/notes/list-server-bad-status-fix-7db504b38c8d732f.yaml
EdLeafe ee4d69e28d Return HTTP 200 on list for invalid status
The server listing API raises a 500 error if you pass an invalid status
filter for admin user. In the case of a non-admin user, it simply
returns an empty list. In the case of an admin user, it fetches extended
server attributes, so a condition was added to get extended server
attributes only when servers list is not empty.

This change simply removes the cause of the 500 exception. A subsequent
patch with a microversion bump will modify the behavior so that a 400
Bad Request will be raised for an invalid status, for both admin and
non-admin alike.

Co-Authored-By: Dinesh Bhor <dinesh.bhor@nttdata.com>

Closes-Bug: #1579706

Change-Id: I10bde78f0a9ac59b8646d58f62fa5056f989f54f
2016-06-30 16:09:53 +00:00

8 lines
319 B
YAML

---
fixes:
- |
Fixed bug #1579706: "Listing nova instances with invalid status raises 500
InternalServerError for admin user". Now passing an invalid status as a
filter will return an empty list. A subsequent patch will then correct this
to raise a 400 Bad Request when an invalid status is received.