neutron port-delete operation throws HTTP 500, if port is lb-vip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Anand Shanmugam | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
1. create a VIP for existed load-balancer
# neutron lb-vip-create --name vip --protocol-port 80 --protocol HTTP --subnet-id <xxx> LB
2. obtain the id of this new VIP by neutron port-list
# neutron port-list
+------
| id | name | mac_address | fixed_ips |
+------
| 6bbfbc5b-
3. # neutron port-delete 6bbfbc5b-
Request Failed: internal server error while processing your request.
# neutron --verbose port-delete 6bbfbc5b-
DEBUG: neutronclient.
DEBUG: neutronclient.
...
DEBUG: neutronclient.
REQ: curl -i http://
.....Yr80gJf7dj
DEBUG: neutronclient.
DEBUG: neutronclient.
ERROR: neutronclient.shell Request Failed: internal server error while processing your request.
Traceback (most recent call last):
File "/usr/lib/
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/
return cmd.run(known_args)
File "/usr/lib/
obj_
File "/usr/lib/
ret = self.function(
File "/usr/lib/
return self.delete(
File "/usr/lib/
headers=
File "/usr/lib/
headers=
File "/usr/lib/
self.
File "/usr/lib/
exception_
File "/usr/lib/
message=
NeutronClientEx
DEBUG: neutronclient.shell clean_up DeletePort
DEBUG: neutronclient.shell Got an error: Request Failed: internal server error while processing your request.
[root@kvalenti-
Request Failed: internal server error while processing your request.
#
It's better to return "Unable to delete" or some other temporary error code. This mocking is not so painful for returning "500" to clients .
summary: |
- neutron port-delete operation throws HTTP 500, if removing port is lb- - vip + neutron port-delete operation throws HTTP 500, if port is lb-vip |
description: | updated |
tags: | added: api |
tags: | removed: lb-vip loadbalancer |
tags: | removed: neutron |
Changed in neutron: | |
assignee: | nobody → Anand Shanmugam (anand1712) |
Changed in neutron: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in neutron: | |
assignee: | Anand Shanmugam (anand1712) → nobody |
assignee: | nobody → senthilmageswaran (senthilmageswaran-muthusamy) |
Changed in neutron: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
assignee: | senthilmageswaran (senthilmageswaran-muthusamy) → Anand Shanmugam (anand1712) |
Changed in neutron: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-1 → 7.0.0 |
On checking code, i found on deleting ports with VIP configured, dberror(database integrity) is thrown.
in my opinion, we need to catch that exception and proper error message need to be returned to neutron client.
This will help users to know exact error.