ip_lib synchronized decorator should wrap the privileged one
Bug #1833721 reported by
Rodolfo Alonso
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Rodolfo Alonso |
Bug Description
In ip_lib library, the methods calling Pyroute commands are decorated with two functions (in this order):
- @privileged.
- @lockutils.
"synchronized" decorator holds the execution of the function until the lock is released. Using the current decorator ordering, this active wait is done inside the privsep context. This can exhaust the number of execution threads reserved for the privsep daemon.
Changed in neutron: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/666853
Review: https:/