neutron/neutron/tests
Rodolfo Alonso Hernandez cc9b849bf3 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.

Conflicts:
    neutron/tests/functional/agent/linux/test_ip_lib.py

Change-Id: I97ada62484023b9833ed12afd68eb4c8d337fd1f
Related-Bug: #1896734
(cherry picked from commit a6cdf273c0)
2021-03-02 09:44:53 +00:00
..
common "ping"/"ping6" command support in rootwrap filters 2020-09-29 10:26:50 +00:00
contrib Conntrack Helper - Plugin 2019-08-29 10:41:04 +02:00
etc Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
fullstack Limit usage of resources in the fullstack tests job 2021-01-18 14:53:46 +01:00
functional Improve "get_devices_with_ip" performance 2021-03-02 09:44:53 +00:00
unit Improve "get_devices_with_ip" performance 2021-03-02 09:44:53 +00:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Reset timeout exception in DietTestCase when retrying 2020-02-04 16:51:12 +00:00
post_mortem_debug.py
tools.py consume WarningsFixture from neutron-lib 2019-07-09 08:32:33 -06:00