remove_router_interface need to improve its validate to avoid 500 DBError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
watanabe.isao |
Bug Description
500 DBError should not be returned in a user operation.
[User operation]
=======
curl -i -X PUT -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" http://
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=UTF-8
Content-Length: 150
X-Openstack-
Date: Fri, 30 Jan 2015 06:30:26 GMT
{"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalSe
=======
When subnet_id or port_id is not defined in the body of the above RESR API request, 400 Error should be returned.
However, the varidate for this is not enough and cause a 500 DB Error.
[TraceLog]
=======
2015-01-28 21:37:16.956 2589 ERROR neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
2015-01-28 21:37:16.956 2589 TRACE neutron.
=======
[About fix]
A varidate like in add_router_
See add_router_
=======
curl -i -X PUT -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" http://
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
Content-Length: 134
X-Openstack-
Date: Thu, 29 Jan 2015 02:20:39 GMT
{"NeutronError": {"message": "Bad router request: Either subnet_id or port_id must be specified", "type": "BadRequest", "detail": ""}}
=======
Changed in neutron: | |
assignee: | nobody → watanabe.isao (watanabe.isao) |
Changed in neutron: | |
milestone: | none → kilo-rc1 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/151973
Review: https:/