neutron/neutron
Miguel Angel Ajo 559bf87fd0 Avoid agents adding ports as trunk by default.
Agent OVS interface code adds ports without a vlan tag,
if neutron-openvswitch-agent fails to set the tag, or takes
too long, the port will be a trunk port, receiving
traffic from the external network or any other port
sending traffic on br-int.

Also, those kinds of ports are triggering a code path
on the ovs-vswitchd revalidator thread which can eventually
hog the CPU of the host (that's a bug under investigation [1])

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1558336

Conflicts:
    neutron/tests/functional/agent/test_ovs_lib.py

    needed the addition of the following import:
from neutron.plugins.ml2.drivers.openvswitch.agent.common import (
    constants as agent_const)

Co-Authored-By: Slawek Kaplonski <skaplons@redhat.com>
Change-Id: I024bbbdf7059835b2f23c264b48478c71633a43c
Closes-Bug: 1767422
(cherry picked from commit 88f5e11d8b)
(cherry picked from commit 2b1d413ee9)
2018-06-21 17:06:48 +00:00
..
agent Avoid agents adding ports as trunk by default. 2018-06-21 17:06:48 +00:00
api Call update_all_ha_network_port_statuses on agent start 2017-12-06 07:53:06 +00:00
callbacks Merge "Routed networks IPv4 inventory in Nova GRP" 2017-01-24 22:37:41 +00:00
cmd More efficiently clean up OVS ports 2018-01-29 08:15:55 -06:00
common Fix eventlet imports issue 2018-06-02 09:57:26 +00:00
conf Revert "Linux Bridge: driver support for QoS egress minimum bandwidth" 2017-02-10 04:34:21 +00:00
core_extensions Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
db Merge "Always pass device_owner to _ipam_get_subnets()" into stable/ocata 2018-03-17 01:38:19 +00:00
debug Replace device owners hard coded strings to neutron_lib constants 2016-07-12 04:11:35 -04:00
extensions Enhance tag mechanism 2017-02-06 10:09:05 +00:00
hacking Register sqlalchemy events through hook for UT cleanup 2017-01-20 04:15:01 -08:00
ipam Always pass device_owner to _ipam_get_subnets() 2018-02-17 18:32:21 +00:00
locale Imported Translations from Zanata 2017-10-31 07:43:29 +00:00
notifiers Turn nova notifier into a proper rate limiter 2017-03-20 20:48:58 +00:00
objects Ensure _get_changed_synthetic_fields() return updatable fields 2018-06-08 08:34:31 +00:00
pecan_wsgi [Pecan] Fix custom tenant_id project_id matching 2017-06-14 16:47:09 +00:00
plugins Merge "Don't delete flows on ports which were on dead vlan during plug" into stable/ocata 2018-06-19 01:25:02 +00:00
privileged Do not raise an error deleting neighbour entry 2017-01-26 16:22:20 -05:00
quota Register sqlalchemy events through hook for UT cleanup 2017-01-20 04:15:01 -08:00
scheduler Avoid redundant HA port creation during migration 2017-09-11 19:57:01 +00:00
server neutron-rpc-server fails with no plugins loaded 2017-06-14 11:01:52 +00:00
services Don't create new QoS policy during update operation 2017-11-27 20:21:29 +00:00
tests Avoid agents adding ports as trunk by default. 2018-06-21 17:06:48 +00:00
__init__.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py
context.py Correctly set project_name 2017-01-20 16:11:00 -05:00
manager.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
neutron_plugin_base_v2.py Revert "Revert "Remove threading before process forking"" 2016-06-02 21:26:08 +00:00
opts.py XenAPI: Support daemon mode for rootwrap 2017-01-19 07:33:43 +00:00
policy.py Neutron server was not compatible with member actions 2017-06-19 10:32:48 +02:00
service.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
version.py
worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
wsgi.py Pass parameters when create eventlet.wsgi server 2018-02-02 19:11:17 +00:00