neutron/neutron/tests/unit/plugins/ml2
LIU Yulong fa16540d2d Do not call update_device_list in large sets
Ovs-agent can process the ports in large sets, then all
of these ports will have to update DB status or attributes.
But neutron server is centralized. It may have to do
something else, or the database processing can be also
time-consuming. Because of these, it sometimes returns
the RPC timeout exception to ovs-agent. And a fullsync
will be triggered in next rpc loop. The restart time is
becoming longer and longer.

Adds a default step to update the port to reduce
the probability of RPC timeout.

Related-Bug: #1813703
Related-Bug: #1813704
Related-Bug: #1813706
Related-Bug: #1813707

Conflicts:
	neutron/tests/unit/plugins/ml2/test_rpc.py

Change-Id: Ie37f4a4869969e235ce16b73cdfcbdc98626823e
(cherry picked from commit 8408af4f17)
(cherry picked from commit d7d30ea950)
(cherry picked from commit 5d705468de)
2019-04-12 20:07:42 +00:00
..
drivers Merge "ovs: survive errors from check_ovs_status" into stable/pike 2019-04-09 01:14:09 +00:00
extensions Fix port deletion when dns_integration is enabled 2017-09-07 09:21:12 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py ovs mech: bind only if user request switchdev 2017-09-20 05:11:55 +00:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Move db agent schedulers test to a more appropriate place 2015-08-24 15:14:13 +03:00
test_db.py Merge "Add missing unit test for segment db" 2017-06-10 01:04:49 +00:00
test_driver_context.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_ext_portsecurity.py use neutron-lib port security api-def 2017-05-01 11:45:42 -06:00
test_extension_driver_api.py Spin off context module 2017-03-06 16:25:29 +00:00
test_managers.py use MechanismDriver from neutron-lib + shim 2017-06-05 14:09:07 -06:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Don't set administratively disabled ports as ACTIVE 2018-06-20 18:16:25 +00:00
test_port_binding.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_rpc.py Do not call update_device_list in large sets 2019-04-12 20:07:42 +00:00
test_security_group.py use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
test_tracked_resources.py Spin off context module 2017-03-06 16:25:29 +00:00