neutron/neutron/tests/unit
Slawek Kaplonski 50a02ebc06 [OVS FW] Clean port rules if port not found in ovsdb
During e.g. migration or shelve of VM it may happend that
port update event will be send to the ovs agent and in the almost
the same time, port will be removed from br-int.
In such case during update_port_filter method openvswitch firewall
driver will not find port in br-int, and it will do nothing with it.
That will lead to leftover rules for this port in br-int.

So this patch adds calling remove_port_filter() method if port was
not found in br-int. Just to be sure that there is no any leftovers
from the port in br-int anymore.

Conflicts:
    neutron/agent/linux/openvswitch_firewall/firewall.py

Change-Id: I06036ce5fe15d91aa440dc340a70dd27ae078c53
Closes-Bug: #1850557
(cherry picked from commit b01e0c2aa9)
2019-12-03 09:20:46 +01:00
..
agent [OVS FW] Clean port rules if port not found in ovsdb 2019-12-03 09:20:46 +01:00
api Optimize the code that fixes the race condition of DHCP agent. 2019-06-11 09:28:40 +08:00
cmd Fix exception in neutron-sanity-check 2018-06-13 18:21:14 +00:00
common Packets getting lost during SNAT with too many connections 2019-06-04 23:23:07 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Refactor duplicated implementation of _get_policy_obj 2018-06-20 09:51:02 +08:00
db Handle ports assigned to routers without routerports 2019-10-15 10:44:54 +00:00
debug Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
extensions fixed_configured=True when Add/Remove port IPs 2019-10-09 09:36:57 +00:00
hacking Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-24 17:32:08 -04:00
notifiers Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00
objects Use dynamic lazy mode for fetching security group rules 2019-04-29 21:46:55 -06:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins raise priority of dead vlan drop 2019-10-03 08:02:52 +00:00
privileged python3: fix netlink_lib delete_entries 2018-06-29 00:30:19 +02:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Fix sort issue in test_dhcp_agent_scheduler.test_filter_bindings 2019-08-12 08:16:54 +00:00
services Run revision bump operations en masse 2019-11-25 13:55:43 -05:00
tests Increase timeouts for OVSDB in functional tests 2019-09-13 10:57:24 +00:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Add dependency for service plugin 2019-04-12 08:33:27 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Avoid loading same service plugin more than once 2019-04-12 08:33:38 +00:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py
test_policy.py Fix handling of network:shared field in policy module 2019-05-09 09:42:25 +00:00
test_service.py use callback payloads for _SPAWN events 2017-12-21 11:03:36 -07:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Update neutron files for new over-indentation hacking rule (E117) 2019-01-30 20:05:18 +03:00
testlib_api.py Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00