neutron/neutron/tests/unit
Sławek Kapłoński cdcc704b9e [OVS] Fix for cleaning after skipped_devices
When Openvswitch agent will get "port_update" event
(e.g. to set port as unbound) and port is already removed
from br-int when agent tries to get vif port in
treat_devices_added_updated() method (port is removed
because e.g. nova-compute removes it) then resources set
for port by L2 agent extension drivers (like qos) are not
cleaned properly.

In such case port is added to skipped_ports and is set
as DOWN in neutron-db but ext_manager is not called then
for such port so it will not clear stuff like bandwidth
limit's QoS and queue records and also DSCP marking
open flow rules for this port.

This patch fixes this issue by adding call of
ext_manager.delete_port() method for all skipped ports.

Change-Id: I3cf5c57c7f232deaa190ab6b0129e398fdabe592
Closes-Bug: #1737892
(cherry picked from commit a8271e978a)
2018-06-12 20:57:08 +00:00
..
agent Use Param DHCP_OPT_CLIENT_ID_NUM 2018-05-19 14:44:17 +00:00
api Fix lack of routes for neighbour IPv4 subnets 2018-06-01 19:58:18 +00:00
cmd More efficiently clean up OVS ports 2018-01-25 15:29:49 +00:00
common Catch exceptions for all rpc casts 2017-07-27 09:03:00 -07:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Fix default qos policy when creating network 2017-08-24 14:35:38 +00:00
db tests: port test_port_presence_prevents_network_rbac_policy_deletion 2018-06-01 09:48:30 +00:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions Only allow SG port ranges for whitelisted protocols 2018-05-11 00:24:34 +02:00
hacking Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
notifiers use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
objects Fix error message when duplicate QoS rule is created 2018-02-23 14:39:14 +01:00
plugins [OVS] Fix for cleaning after skipped_devices 2018-06-12 20:57:08 +00:00
privileged Add netlink-lib to manage conntrack entries 2017-07-27 13:56:40 +07:00
quota CountableResource: try count/get functions for all plugins 2017-09-12 16:23:22 +00:00
scheduler Avoid redundant HA port creation during migration 2017-09-11 19:56:19 +00:00
services Merge "Fix error message when duplicate QoS rule is created" into stable/pike 2018-03-08 14:29:07 +00:00
tests Replaced assertTrue(False) with fail() 2017-06-22 19:31:00 +02:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
dummy_plugin.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
test_manager.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Remove neutron-fwaas specific policies 2017-07-16 17:56:25 +00:00
test_service.py use neutron-lib.callback.events.AFTER_SPAWN 2017-07-27 05:57:34 +00:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Pass parameters when create eventlet.wsgi server 2017-03-17 14:14:25 +08:00
testlib_api.py API compare-and-swap updates based on revision_number 2017-06-29 22:50:12 +00:00