List api for segments and hosts should return 400 error for invalid sort_key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
Fix Released
|
Undecided
|
Dinesh Bhor |
Bug Description
If you pass invalid sort_key parameter to the list api of failover segments and hosts, then it returns 500 error.
Steps to reproduce:
failover_segments:
Command:
openstack@
HTTP/1.1 500 Internal Server Error
Openstack-
Vary: OpenStack-
Content-Type: application/json; charset=UTF-8
Content-Length: 216
X-Openstack-
Date: Mon, 03 Oct 2016 19:53:15 GMT
{"masakariFault": {"message": "Unexpected API Error. Please report this at http://
hosts:
Command:
openstack@
HTTP/1.1 500 Internal Server Error
Openstack-
Vary: OpenStack-
Content-Type: application/json; charset=UTF-8
Content-Length: 216
X-Openstack-
Date: Mon, 03 Oct 2016 19:58:11 GMT
{"masakariFault": {"message": "Unexpected API Error. Please report this at http://
Changed in masakari: | |
assignee: | nobody → Dinesh Bhor (dinesh-bhor) |
Fix proposed to branch: master /review. openstack. org/382280
Review: https:/