[LBaaS V2] A delete operation on healthmonitor throws HTTP 500 Internal Server Error

Bug #1399749 reported by German Eichberger
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Incomplete
Low
German Eichberger

Bug Description

I attempted to delete a healthmonitor object using the CLI and the call failed with an HTTP 500.Subsequently I deleted the pool and the loadbalancer objects before successfully being able to delete the healthmonitor.

Not sure if there is a dependency ,but the way to handle this gracefully is to report the error and not throw the HTTP 500 .

neutron lbaas-healthmonitor-delete 0c4aa5b9-d343-4ce3-b191-611e85c1f216

DEBUG: neutronclient.client RESP:500 CaseInsensitiveDict(
{'date': 'Fri, 05 Dec 2014 17:35:43 GMT', 'content-length': '161', 'conte nt-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-525545b7-8943-43bd-a3c4-288971e7f12e'}

) {"NeutronError
": {"message": "Invalid state PENDING_DELETE of loadbalancer resource 0c4aa5b9-d343-4ce3-b191-611e85c1f216", "type": "StateInvalid
", "detail": ""}}

DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "Invalid state PENDING_DELETE of loadbalancer resourc
e 0c4aa5b9-d343-4ce3-b191-611e85c1f216", "type": "StateInvalid", "detail": ""}}
ERROR: neutronclient.shell Invalid state PENDING_DELETE of loadbalancer resource 0c4aa5b9-d343-4ce3-b191-611e85c1f216
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 593, in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 88, in run_command
return cmd.run(known_args)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/_init_.py", line 568, in run
obj_deleter(_id)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 101, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 755, in delete_lbaas_healthmonitor
(lbaas_healthmonitor))
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1471, in delete
headers=headers, params=params)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1460, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1403, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1371, in _handle_fault_response
exception_handler_v20(status_code, des_error_body)
File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 68, in exception_handler_v20
status_code=status_code)
StateInvalidClient: Invalid state PENDING_DELETE of loadbalancer resource 0c4aa5b9-d343-4ce3-b191-611e85c1f216
DEBUG: neutronclient.shell clean_up DeleteHealthMonitor
DEBUG: neutronclient.shell Got an error: Invalid state PENDING_DELETE of loadbalancer resource 0c4aa5b9-d343-4ce3-b191-611e85c1f21
6

Tags: lbaas
Changed in neutron:
assignee: nobody → German Eichberger (german-eichberger)
Changed in neutron:
importance: Undecided → Low
Changed in neutron:
status: New → Incomplete
Revision history for this message
senthilmageswaran (senthilmageswaran-muthusamy) wrote :

In juno, for the above mentioned scenario the following error is thrown,

root@controller:~# neutron lb-healthmonitor-delete 4e95202d-4913-4ac2-91b8-cf8683da95c7
Health monitor 4e95202d-4913-4ac2-91b8-cf8683da95c7 still has associations with pools (HTTP 409) (Request-ID: req-bb9db640-e6fe-48c7-8a04-a95534a52099)

This is expected output.

Could you please confirm if this error is simulated in juno.

If so, can you attach the following logs/info?

1. output of command,
neutron --verbose lb-healthmonitor-delete <health moniotor id>

2. Neutron's

     server.log
     lbaas-agent.log

--

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.