]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ovs agent resync may miss port remove event
authorAman Kumar <amank@hp.com>
Tue, 17 Mar 2015 10:41:54 +0000 (03:41 -0700)
committerrossella <rsblendido@suse.com>
Tue, 8 Sep 2015 13:24:52 +0000 (13:24 +0000)
commitd6d0853be34ce783b133a9c39aeb608033f3073b
tree861befd8aec921be2b461f7dba41914b549f525b
parent375efc377f6fe88437eb45322d7f7d6c5e105837
ovs agent resync may miss port remove event

In OVS Agent rpc_loop() resync mechanism clears the registered ports and
rescans them again, and it might result in missing some "port removed"
event and treat_devices_removed will not be called.

This fix rescans the newly updated ports when resync mechanism called,
without clearing the current registered ports.

The registered ports will be cleared only if there are too many
consecutive resyncs to avoid resycing forever because of the same
faulty port.

Closes-Bug: #1329223

Co-Authored-By: Andrey Epifanov <aepifanov@mirantis.com>
Co-Authored-By: Gandharva S <gandharva.s@hp.com>
Co-Authored-By: Romil Gupta <romilg@hp.com>
Co-Authored-By: Rossella Sblendido <rsblendido@gmail.com>
Change-Id: Ib0db9dcf889d9fd90b623857782c9a6b091e18f5
neutron/plugins/ml2/drivers/openvswitch/agent/common/constants.py
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_tunnel.py