Comment 4 for bug 1854462

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Hello:

Using the following script [1] and adding debug log messages in the pyroute2 library, I found that the method [2] tends to block the execution, not returning anything and blocking other threads, as seen in several log reports.

A possible solution could be to declare just once this variable in the priv_lib module and the passing it to the create and delete methods.

I'll propose a patch for this.

[1] http://paste.openstack.org/show/787322/
[2] https://github.com/svinota/pyroute2/blob/master/pyroute2/netns/__init__.py#L209