yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23528
[Bug 1367892] Re: delete port fails with RouterNotHostedByL3Agent exception
Reviewed: https://review.openstack.org/126565
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=75f34fbbd930a143ed2c4b868f33c117e467e98e
Submitter: Jenkins
Branch: proposed/juno
commit 75f34fbbd930a143ed2c4b868f33c117e467e98e
Author: Ed Bak <ed.bak2@xxxxxx>
Date: Mon Sep 29 14:15:52 2014 -0600
Don't fail when trying to unbind a router
If a router is already unbound from an l3 agent, don't fail. Log
the condition and go on. This is harmless since it can happen
due to a delete race condition between multiple neutron-server
processes. One delete request can determine that it needs to
unbind the router. A second process may also determine that it
needs to unbind the router. The exception thrown will result
in a port delete failure and cause nova to mark a deleted instance
as ERROR.
Change-Id: Ia667ea77a0a483deff8acfdcf90ca84cd3adf44f
Closes-Bug: 1367892
** Changed in: neutron
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1367892
Title:
delete port fails with RouterNotHostedByL3Agent exception
Status in OpenStack Neutron (virtual network service):
Fix Released
Bug description:
When deleting a vm, port_delete sometimes fails with a
RouterNotHostedByL3Agent exception. This error is created by a script
which boots a vm, associates a floating ip, tests that the vm is
pingable, disassociates the fip and then deletes the vm. The
following stack trace has been seen multiple times.
2014-09-09 11:55:59 7648 DEBUG neutronclient.v2_0.client [req-16883a09-7ec6-4159-9580-9cfa1880f786 73ae929bd62c4eddbe2f38a709265f2b 3d4668d03b5e4ac7b316aac9ff88e2db] Error message: {"NeutronError": {"message": "The router 0ffc5634-d7ff-4bc7-8dca-cbdb10414924 is not hosted by L3 agent 35f71627-3c41-4226-96dd-15faa6ec44c3.", "type": "RouterNotHostedByL3Agent", "detail": ""}} _handle_fault_response /opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py:1202
2014-09-09 11:55:59 7648 ERROR nova.network.neutronv2.api [req-16883a09-7ec6-4159-9580-9cfa1880f786 73ae929bd62c4eddbe2f38a709265f2b 3d4668d03b5e4ac7b316aac9ff88e2db] Failed to delete neutron port 41b8e31b-f459-4159-9311-d8701885f43a
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api Traceback (most recent call last):
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 448, in deallocate_for_instance
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api neutron.delete_port(port)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 101, in with_params
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api ret = self.function(instance, *args, **kwargs)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 328, in delete_port
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api return self.delete(self.port_path % (port))
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1311, in delete
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api headers=headers, params=params)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1300, in retry_request
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api headers=headers, params=params)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1243, in do_request
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api self._handle_fault_response(status_code, replybody)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1211, in _handle_fault_response
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api exception_handler_v20(status_code, des_error_body)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 68, in exception_handler_v20
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api status_code=status_code)
2014-09-09 11:55:59.153 7648 TRACE nova.network.neutronv2.api Conflict: The router 0ffc5634-d7ff-4bc7-8dca-cbdb10414924 is not hosted by L3 agent 35f71627-3c41-4226-96dd-15faa6ec44c3.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1367892/+subscriptions
References