neutron/neutron/tests/unit
yangjianfeng 99f4495c94 Improve port dhcp Provisioning
Currently, the dhcp Provisioning of ports is the crucial bottleneck
of that concurrently boot multiple VM.

The root cause is that these ports will be processed one by one by dhcp
agent when they belong to the same network, And the 'Provisioning complete'
port is still blocked other port's processing in other dhcp agents. The
patch aim to optimize the dispatch strategy of the port cast to agent to
improve the Provisioning process.

In server side, I classify messages to multi levels. Especially, I classify
the port_update_end or port_create_end message to two levels, the high-level
message only cast to one agent, the low-level message cast to all agent. In
agent side I put these messages to `resource_processing_queue`, with the queue,
We can delete `_net_lock` and process these messages in order of priority.

Additonally, I modified the `resource_processing_queue` for my demand. I update
`_queue` from LIST to PriorityQueue in `ExclusiveResourceProcessor`, by this
way, we can sort all message which cached in `ExclusiveResourceProcessor` by
priority.

Related-Bug: #1760047
Change-Id: I255caa0571c42fb012fe882259ef181070beccef
2019-01-28 07:26:45 +00:00
..
agent Improve port dhcp Provisioning 2019-01-28 07:26:45 +00:00
api Improve port dhcp Provisioning 2019-01-28 07:26:45 +00:00
cmd Upgrade check command - add support for 3rd party checks 2018-12-18 11:23:03 +01:00
common Merge "ovs-agent: Report resource info in heartbeat" 2018-10-22 20:03:06 +00:00
conf/agent
core_extensions Refactor duplicated implementation of _get_policy_obj 2018-06-20 09:51:02 +08:00
db Improve port dhcp Provisioning 2019-01-28 07:26:45 +00:00
debug Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
extensions Merge "Add test cases: invalidate CIDR" 2019-01-26 12:37:59 +00:00
hacking Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00
ipam Add bulk IP address assignment to ipam driver 2018-11-19 11:29:13 -05:00
notifiers Send global_request_id for tracing calls from neutron to nova 2018-11-30 05:41:24 +00:00
objects consume get_updatable_fields from neutron-lib 2019-01-02 07:10:25 -07:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Change duplicate OVS bridge datapath-ids 2019-01-24 16:35:50 +00:00
privileged Correct arguments to nfct_open 2019-01-24 08:41:38 +00:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Merge "DVR: Centralized FloatingIPs are not cleared after migration." 2018-11-15 09:37:22 +00:00
services consume get_updatable_fields from neutron-lib 2019-01-02 07:10:25 -07:00
tests
__init__.py
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py use neutron-lib servicetype api def 2018-03-27 14:32:44 -06:00
extension_stubs.py
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Implement filter validation 2018-07-19 04:13:43 +00:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py
test_policy.py Add ext_parent policy check 2018-08-01 02:45:42 +08:00
test_service.py use callback payloads for _SPAWN events 2017-12-21 11:03:36 -07:00
test_worker.py
test_wsgi.py remove context_manager from neutron 2018-12-18 12:26:53 -07:00
testlib_api.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00