← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:


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

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: lbaas

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1399749

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

Status in OpenStack Neutron (virtual network service):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1399749/+subscriptions


Follow ups

References