2f4ef314ce
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
|
||
---|---|---|
.. | ||
agent | ||
api | ||
cmd | ||
common | ||
conf | ||
core_extensions | ||
db | ||
debug | ||
extensions | ||
hacking | ||
ipam | ||
locale | ||
notifiers | ||
objects | ||
pecan_wsgi | ||
plugins | ||
privileged | ||
profiling | ||
quota | ||
scheduler | ||
server | ||
services | ||
tests | ||
__init__.py | ||
_i18n.py | ||
auth.py | ||
manager.py | ||
neutron_plugin_base_v2.py | ||
opts.py | ||
policy.py | ||
service.py | ||
version.py | ||
worker.py | ||
wsgi.py |