neutron/neutron/tests/functional/agent/linux
Rodolfo Alonso Hernandez 577d5bd977 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
(cherry picked from commit a6cdf273c0)
2021-03-01 10:31:10 +00:00
..
bin Merge "Remove "six" library" 2020-07-30 00:35:59 +00:00
openvswitch_firewall use EGRESS_DIRECTION and INGRESS_DIRECTION from neutron-lib 2018-02-23 10:36:36 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py Remove deprecated vsctl ovsdb_interface api 2018-10-11 14:59:34 -04:00
helpers.py Fix flake8 H404 errors 2018-10-05 21:48:41 +00:00
simple_daemon.py Remove translation of help messages from tests 2017-09-25 09:49:38 +00:00
test_async_process.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00
test_bridge_lib.py Implement "BridgeDevice" with Pyroute2 2020-07-06 11:01:21 +00:00
test_dhcp.py Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
test_interface.py Fix get_ipv6_llas method in the interface driver 2020-08-21 15:11:24 +02:00
test_ip_lib.py Improve "get_devices_with_ip" performance 2021-03-01 10:31:10 +00:00
test_ipset.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
test_iptables.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_keepalived.py Add 'keepalived_use_no_track' config option 2020-08-13 17:15:29 +02:00
test_l3_tc_lib.py Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
test_linuxbridge_arp_protect.py use neutron_lib's get_random_mac 2017-03-07 09:13:47 -06:00
test_netlink_lib.py [Functional tests] Change way how conntrack entries are checked 2019-03-02 09:07:07 +00:00
test_of_monitor.py OpenFlow monitor 2019-11-20 18:00:13 +00:00
test_ovsdb_monitor.py Trivial: Move platform independent modules to common dir 2018-08-14 09:54:01 +03:00
test_process_monitor.py Remove "six" library 2020-07-28 16:55:52 +00:00
test_tc_lib.py Fix the wrong value for QoS rate conversion to bytes/s 2020-06-20 19:38:30 +00:00
test_utils.py Trivial: Move platform independent modules to common dir 2018-08-14 09:54:01 +03:00