neutron/neutron/tests/functional
Rodolfo Alonso Hernandez a6cdf273c0 Improve "get_devices_with_ip" performance
As reported in LP#1896734, there is a limit in the size of information
that can be transmitted in one single message between an application
and the privsep daemon. The read socket buffer is limited in size;
a message exceeding this size will generate an exception.

In order to limit the amount of information to be sent, this patch
improves the performance of "get_devices_with_ip". In the previous
implementation, the whole list of network devices from a namespace
was retrieved. In some environments, the list of devices could be
so big that the list returned by "privileged.get_link_devices" can
exceed the read buffer size (as reported in the LP bug when the
OVS agent tries to retrieve the list of IP addresses in the system).

Now the function calls "privileged.get_ip_addresses", that returns
a much smaller list. This patch is also reducing the number of system
calls to just one; the previous implementation was retrieving first
the devices link information list (that method was returning a much
bigger blob) and then, per device, retrieving the IP address
information.

Change-Id: I97ada62484023b9833ed12afd68eb4c8d337fd1f
Related-Bug: #1896734
2021-02-27 10:07:03 +00:00
..
agent Improve "get_devices_with_ip" performance 2021-02-27 10:07:03 +00:00
api Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
cmd Remove rootwrap execution (2) 2021-02-06 16:23:03 +00:00
common All functional tests logs results now 2018-11-21 19:58:18 +00:00
db [FT] Reduce "test_walk_versions" upgrade executions 2021-01-18 11:03:56 +00:00
pecan_wsgi Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
plugins [OVN] Allow schema checks to happen before starting connection 2021-01-29 05:02:27 +00:00
privileged Remove rootwrap execution (2) 2021-02-06 16:23:03 +00:00
resources [OVN] Allow schema checks to happen before starting connection 2021-01-29 05:02:27 +00:00
sanity Use pyroute2 for SRIOV VF commands 2020-05-27 16:58:02 +00:00
scheduler Add binding_index to NetworkDhcpAgentBinding 2019-08-29 12:52:07 +04:00
services [FT] Add lrp port binding wait event failure message 2021-01-19 16:38:20 +00:00
tests Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
__init__.py tests: removed 'retargetable' framework 2017-05-02 16:45:49 +00:00
base.py Merge "add_fake_chassis() may need to create a Chassis_Private" 2021-02-16 21:16:35 +00:00
constants.py TrunkManager for the OVS agent 2016-08-24 02:52:17 -04:00
requirements.txt Update requirements for recent pip failures 2020-12-09 13:17:51 +01:00
test_server.py Merge "[Functional] Add logging to the check test file function" 2020-08-06 19:17:08 +00:00
test_service.py Modify api and rpc default number of workers 2019-02-19 13:24:01 -07:00