OpenStack Networking (Neutron)
Go to file
Rodolfo Alonso Hernandez 6376391b45 [OVS] Handle added/removed ports in the same polling iteration
The OVS agent processes the port events in a polling loop. It could
happen (and more frequently in a loaded OVS agent) that the "removed"
and "added" events can happen in the same polling iteration. Because
of this, the same port is detected as "removed" and "added".

When the virtual machine is restarted, the port event sequence is
"removed" and then "added". When both events are captured in the same
iteration, the port is already present in the bridge and the port is
discharted from the "removed" list.

Because the port was removed first and the added, the QoS policies do
not apply anymore (QoS and Queue registers, OF rules). If the QoS
policy does not change, the QoS agent driver will detect it and won't
call the QoS driver methods (based on the OVS agent QoS cache, storing
port and QoS rules). This will lead to an unconfigured port.

This patch solves this issue by detecting this double event and
registering it as "removed_and_added". When the "added" port is
handled, the QoS deletion method is called first (if needed) to remove
the unneded artifacts (OVS registers, OF rules) and remove the QoS
cache (port/QoS policy). Then the QoS policy is applied again on the
port.

NOTE: this is going to be quite difficult to be tested in a fullstack
test.

Conflicts:
      neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py

Change-Id: I51eef168fa8c18a3e4cee57c9ff86046ea9203fd
Closes-Bug: #1845161
(cherry picked from commit 50ffa5173d)
(cherry picked from commit 3eceb6d2ae)
2020-02-10 17:41:13 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
bin Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00
devstack Devstack plugin for network-segment-range api 2019-03-10 03:37:51 +00:00
doc DVR: Ignore DHCP port during DVR host query 2020-01-21 00:36:48 +00:00
etc Allow to kill keepalived state change monitor process 2020-01-28 15:42:53 +00:00
neutron [OVS] Handle added/removed ports in the same polling iteration 2020-02-10 17:41:13 +00:00
playbooks OpenDev Migration Patch 2019-04-19 19:39:10 +00:00
rally-jobs Merge "rally-jobs: Add FloatingIP workloads: assoc/dissoc" 2019-03-01 21:24:43 +00:00
releasenotes Fix bug: AttributeError arises while sorting with standard attributes 2020-02-03 11:02:28 +00:00
roles OpenDev Migration Patch 2019-04-19 19:39:10 +00:00
tools Set rootwrap daemon timeout for fullstack and functional tests 2019-11-04 09:51:19 +00:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore [Configuration] Clean up .gitignore references to personal tools 2019-01-31 16:17:38 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:39:10 +00:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Fix pylint R1717 (consider-using-dict-comprehension) refactor messages 2019-03-14 23:19:58 +00:00
.stestr.conf Fix post gate hook to accommodate for new os-testr 2017-09-12 14:20:12 -06:00
.zuul.yaml Remove one of iptables_hybrid jobs 2020-01-29 14:15:48 +01:00
CONTRIBUTING.rst Update link for contribution 2017-08-31 16:44:51 +02:00
HACKING.rst Update the documentation link for doc migration 2017-07-22 18:46:13 +09:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
README.rst Update mailinglist from dev to discuss 2018-12-12 12:44:12 +08:00
TESTING.rst Add method to tox to use local neutron-lib with unit tests 2019-03-02 14:56:15 -07:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
bindep.txt Add libffi-dev to bindep.txt 2017-06-13 19:26:49 +00:00
lower-constraints.txt Use dynamic lazy mode for fetching security group rules 2019-03-14 16:23:53 -06:00
requirements.txt Use dynamic lazy mode for fetching security group rules 2019-03-14 16:23:53 -06:00
setup.cfg fix NetworkSegmentRange OVO entry point 2019-07-22 05:15:29 +00:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Use constraints for docs tox target and cap hacking 2019-12-18 19:29:04 +01:00
tox.ini Use constraints for docs tox target and cap hacking 2019-12-18 19:29:04 +01:00

README.rst

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst