Slawek Kaplonski 284afcf24f Lock privileged.agent.linux.ip_lib functions
It is workaround of bug in pyroute2 library which, when
running in multithread environment, sometimes have issues
with NetNS class.
When NetNS.__init__() is called, it uses os.pipe() function to
create 2 file descriptors which are used to communicated between
2 processes.
In some cases when multiple threads are running it might happen
that in two instances of NetNS() class there will be same file
descriptors used and that leads to problems when one thread
closes file descriptor and second still wants to use it.

With this patch functions which uses instance of pyroute2.NetNS class
are locked thus there shouldn't be risk of using same file descriptors
in 2 separate threads.

Co-Authored-By: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>

Change-Id: Id5e6f2f8e9c31a7138da9cd6792e9d75845b81c5
Closes-Bug: #1811515
2019-01-16 22:45:40 +01:00
2016-06-28 22:46:19 +02:00
2019-01-07 12:45:15 -05:00
2016-10-17 17:06:19 +05:30
2018-12-20 14:19:40 +09:00
2014-05-16 13:40:04 -04:00
2018-10-03 08:41:56 +00:00
2019-01-14 09:53:39 +00:00
2017-06-13 19:26:49 +00:00
2017-08-31 16:44:51 +02:00
2018-12-13 10:00:17 +00:00
2017-03-04 11:19:58 +00:00

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst

Description
OpenStack Networking (Neutron)
Readme 1 GiB
Languages
Python 99.7%
Shell 0.3%