← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1302701] Re: Neutron refuses to delete instance associated with multiple floating addresses

 

** Also affects: neutron/icehouse
   Importance: Undecided
       Status: New

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

Title:
  Neutron refuses to delete instance associated with multiple floating
  addresses

Status in OpenStack Neutron (virtual network service):
  Fix Released
Status in neutron icehouse series:
  New

Bug description:
  Neutron does not permit one to delete an instance that is associated
  with multiple floating ip addresses.

  Create an instance:

    nova boot ... --nic net-id=3ff9b903-e921-4752-a26f-cba8f1433992
  --key-name lars test0

  Add a second fixed ip address:

    nova add-fixed-ip test0 3ff9b903-e921-4752-a26f-cba8f1433992
    nova show test0  | grep network
    | net0 network                         | 10.0.0.4, 10.0.0.5                                          |

  
  Associate a floating ip address with each fixed address:

    $ nova add-floating-ip --fixed-address 10.0.0.5 test0 192.168.200.7
    $ nova add-floating-ip --fixed-address 10.0.0.4 test0 192.168.200.6

  Now attempt to delete the instance:

    $ nova delete test0
    $ nova list | grep test0
    | c36e277f-e354-4856-8f5b-9603e6c76b2e | test0 | ERROR  ...

  Neutron server fails with:

    ERROR neutron.api.v2.resource [-] delete failed
    TRACE neutron.api.v2.resource Traceback (most recent call last):
    TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
    TRACE neutron.api.v2.resource     result = method(request=request, **args)
    TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 432, in delete
    TRACE neutron.api.v2.resource     obj_deleter(request.context, id, **kwargs)
    TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/openvswitch/ovs_neutron_plugin.py", line 631, in delete_port
    TRACE neutron.api.v2.resource     self.disassociate_floatingips(context, id)
    TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_db.py", line 751, in disassociate_floatingips
    TRACE neutron.api.v2.resource     % port_id)
    TRACE neutron.api.v2.resource Exception: Multiple floating IPs found for port b591c76b-9d72-41d7-a884-2959a1f6b7fc
    TRACE neutron.api.v2.resource 

  Disassociating one of the floating ips allows the delete to complete
  successfully:

    nova floating-ip-disassociate test0 192.168.200.6
    nova delete test0

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


References