ee4d69e28d
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
8 lines
319 B
YAML
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.
|