neutron/neutron/agent
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
..
common Fix unused 'timeout' in OvsdbMonitor start 2021-01-28 13:41:38 +00:00
dhcp Don't configure dnsmasq entries for "network" ports 2021-02-18 13:18:12 +01:00
l2 Implement "FdbInterface" with Pyroute2 2020-12-24 17:00:06 +00:00
l3 Merge "Remove update_initial_state() method from the HA router" 2021-02-26 23:34:29 +00:00
linux Improve "get_devices_with_ip" performance 2021-02-27 10:07:03 +00:00
metadata Stop metadata proxy gracefully 2021-02-06 17:24:38 +00:00
ovn [ovn] Metadata agent: fix checking datapath type 2021-01-26 09:52:21 -05:00
ovsdb Remove "ovs-vsctl" support from rootwrap 2020-11-23 16:23:36 +00:00
windows Remove rootwrap execution (1) 2021-02-06 16:22:43 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
agent_extensions_manager.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dhcp_agent.py Set process name for agents 2020-07-01 12:28:29 +02:00
firewall.py Revert "Process ingress multicast traffic for 224.0.0.X separately" 2020-10-24 08:27:38 +00:00
l3_agent.py Set process name for agents 2020-07-01 12:28:29 +02:00
metadata_agent.py Remove deprecated cache_url 2017-11-10 00:47:19 -05:00
resource_cache.py Ignore first local port update notification 2019-07-04 12:06:11 +00:00
rpc.py [OVS] Fix live-migration connection disruption 2021-01-13 11:13:41 +00:00
securitygroups_rpc.py Support address group in OVS firewall agent 2021-02-08 13:28:06 -06:00