neutron/neutron/agent/l3
Slawek Kaplonski f5354f5343 [L3] Switch order of processing added and removed router ports
It may happend that one router's port is going to be
removed and another one (same IP but new subnet) is going to be added
to the router in short time.
That can lead to the problem that IP which is allocated to the new
port is not added to keepalived's vips list because same IP address
is already in this list (this exising IP address belongs to old port).
But few seconds later old port is removed and finally router ends
up with new port configured without IP address.

To avoid such case, this patch switches order of processing new
and deleted ports in _process_internal_ports() method in RouterInfo
class.
So now first old ports will be removed and than new ports will be
configured so there will be no case when IP address is already added
to VIPs list when it is going to be removed in few seconds.

Change-Id: I72dc4a06a806731ec5124fa11c9f69c7dd6cbbb0
Closes-Bug: #1857021
(cherry picked from commit 3faba7cae0)
2020-01-10 08:10:54 +00:00
..
extensions Agent - Conntrack Helper 2019-08-29 10:41:13 +02:00
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Merge "Remove get_external_network_id for router" 2019-09-25 19:30:14 +00:00
dvr.py Revert "DVR: Fix allowed_address_pair IP, ARP table update by neutron agent" 2018-06-07 15:32:20 +00:00
dvr_edge_ha_router.py Keep HA ports info for HA router during entire lifecycle 2019-05-05 10:34:09 +08:00
dvr_edge_router.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
dvr_fip_ns.py Merge "DVR: Correctly change MTU in fip namespace" 2019-04-12 05:48:09 +00:00
dvr_local_router.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
dvr_router_base.py remove neutron.common.constants 2019-04-04 14:10:26 -06:00
dvr_snat_ns.py Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
fip_rule_priority_allocator.py Fix two spelling mistakes 2016-05-30 01:58:04 +00:00
ha.py Delay HA router transition from "backup" to "master" 2019-08-27 16:47:00 +00:00
ha_router.py Delay HA router transition from "backup" to "master" 2019-08-27 16:47:00 +00:00
item_allocator.py Fix flake8 N534 untranslated exception message 2018-10-19 15:46:04 -04:00
keepalived_state_change.py Set neutron-keepalived-state-change proctitle 2019-05-23 15:22:35 +08:00
l3_agent_extension_api.py Add router_factory to l3-agent and L3 extension API 2019-04-26 10:22:50 +09:00
l3_agent_extensions_manager.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
legacy_router.py Remove deprecated send_arp_for_ha option 2017-04-18 13:38:35 -04:00
link_local_allocator.py spelling error: 2016-06-30 10:17:18 +08:00
namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
namespaces.py Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
router_info.py [L3] Switch order of processing added and removed router ports 2020-01-10 08:10:54 +00:00