neutron/neutron
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 Secure dnsmasq process against external abuse 2019-02-01 09:07:14 +00:00
common Packets getting lost during SNAT with too many connections 2019-06-04 23:23:07 +00:00
conf Add radvd_user config option 2019-10-24 15:59:03 +00:00
core_extensions Refactor duplicated implementation of _get_policy_obj 2018-06-20 09:51:02 +08:00
db Run revision bump operations en masse 2019-11-25 13:55:43 -05:00
debug Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
extensions Improve invalid port ranges error message 2019-03-21 10:16:55 -04:00
hacking use sqla functions from neutron-lib 2018-07-25 21:04:20 +00:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-24 17:32:08 -04:00
locale Imported Translations from Zanata 2018-11-30 09:16:33 +00:00
notifiers Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00
objects Handle ports assigned to routers without routerports 2019-10-15 10:44:54 +00:00
pecan_wsgi Use list instead of six.viewkeys to avoid py2 to py3 problems 2019-05-31 13:22:11 +00:00
plugins raise priority of dead vlan drop 2019-10-03 08:02:52 +00:00
privileged Check the namespace is ready in test_mtu_update tests 2019-09-16 09:30:43 +00:00
quota Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
scheduler Fetch specific columns rather than full ORM entities 2018-09-27 16:28:37 +00:00
server Allow neutron-api load config from WSGI process 2018-07-25 15:22:14 +07:00
services Run revision bump operations en masse 2019-11-25 13:55:43 -05:00
tests [OVS FW] Clean port rules if port not found in ovsdb 2019-12-03 09:20:46 +01:00
__init__.py
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Avoid loading same service plugin more than once 2019-04-12 08:33:38 +00:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Merge "Remove deprecated cache_url" 2018-01-03 06:35:59 +00:00
policy.py Treat networks shared by RBAC in same way as shared with all tenants 2019-06-28 06:05:33 +00:00
service.py Allow neutron-api load config from WSGI process 2018-07-25 15:22:14 +07:00
version.py
worker.py replace WorkerSupportServiceMixin with neutron-lib's WorkerBase 2017-06-14 06:56:48 -06:00
wsgi.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00