[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.
Reviewed: https:/ /review. opendev. org/697021 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=ef689b284c0 79fba497723fb77 9603aa99d8afff
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit ef689b284c079fb a497723fb779603 aa99d8afff
Author: Slawek Kaplonski <email address hidden>
Date: Wed Nov 27 10:44:19 2019 +0100
[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: I06036ce5fe15d9 1aa440dc340a70d d27ae078c53 f9c25e20a66c02f ccccdc7885)
Closes-Bug: #1850557
(cherry picked from commit b01e0c2aa98866d