← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1252330] Re: [VPNaaS] NotImplementedError at /project/vpn/ when deleting a vpn service

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

** Changed in: horizon
    Milestone: None => icehouse-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1252330

Title:
  [VPNaaS] NotImplementedError at /project/vpn/ when deleting a vpn
  service

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  First activae VPNaaS :
  https://wiki.openstack.org/wiki/Neutron/VPNaaS/HowToInstall

  Follow the procedure in the URL above to set up a VPN.
  Then, in the horizon UI at the "/project/vpn/?tab=vpntabs__vpnservices" url, click on the "delete" button of a vpn (Without having deleted the related IPSec connection in "/project/vpn/?tab=vpntabs__ipsecsiteconnections"). 

  This error then gets raised:

  WARNING 2013-11-18 15:53:26,947 /home/yves/openstack/horizon/horizon/exceptions.py:310 handle Recoverable error: 409-{u'NeutronError': {u'message': u'VPNService 830bc5be-de8c-414a-b540-869cecca9684 is still in use', u'type': u'VPNServiceInUse', u'detail': u''}}
  ERROR 2013-11-18 15:53:27,066 /home/yves/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py:212 handle_uncaught_exception Internal Server Error: /project/vpn/
  Traceback (most recent call last):
    File "/home/yves/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
      response = callback(request, *callback_args, **callback_kwargs)
    File "/home/yves/openstack/horizon/horizon/decorators.py", line 38, in dec
      return view_func(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/horizon/decorators.py", line 54, in dec
      return view_func(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/horizon/decorators.py", line 38, in dec
      return view_func(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/horizon/decorators.py", line 86, in dec
      return view_func(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
      return self.dispatch(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
      return handler(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/openstack_dashboard/dashboards/project/vpn/views.py", line 84, in post
      return self.get(request, *args, **kwargs)
    File "/home/yves/openstack/horizon/horizon/tabs/views.py", line 132, in get
      handled = self.handle_table(self._table_dict[table_name])
    File "/home/yves/openstack/horizon/horizon/tabs/views.py", line 113, in handle_table
      handled = tab._tables[table_name].maybe_handle()
    File "/home/yves/openstack/horizon/horizon/tables/base.py", line 1261, in maybe_handle
      return self.take_action(action_name, obj_id)
    File "/home/yves/openstack/horizon/horizon/tables/base.py", line 1194, in take_action
      response = action.multiple(self, self.request, obj_ids)
    File "/home/yves/openstack/horizon/horizon/tables/actions.py", line 263, in multiple
      return self.handle(data_table, request, object_ids)
    File "/home/yves/openstack/horizon/horizon/tables/actions.py", line 617, in handle
      exceptions.handle(request, ignore=ignore)
    File "/home/yves/openstack/horizon/horizon/tables/actions.py", line 601, in handle
      self.action(request, datum_id)
    File "/home/yves/openstack/horizon/horizon/tables/actions.py", line 648, in action
      return self.delete(request, obj_id)
    File "/home/yves/openstack/horizon/horizon/tables/actions.py", line 651, in delete
      raise NotImplementedError("DeleteAction must define a delete method.")
  NotImplementedError: DeleteAction must define a delete method.
  [18/Nov/2013 15:53:27] "POST /project/vpn/ HTTP/1.1" 500 284664

  It works fine if the IPSec Site Conection is deleted before the VPN Service.
  We should not be permitted to delete a VPN Service without having deleted the related IPSec Site connection before.

  The same thing happens with the IPSec Policies and IKE Policies.

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