← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1833721] [NEW] ip_lib synchronized decorator should wrap the privileged one

 

Public bug reported:

In ip_lib library, the methods calling Pyroute commands are decorated with two functions (in this order):
- @privileged.default.entrypoint
- @lockutils.synchronized("privileged-ip-lib")

"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.

** Affects: neutron
     Importance: Undecided
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1833721

Title:
  ip_lib synchronized decorator should wrap the privileged one

Status in neutron:
  In Progress

Bug description:
  In ip_lib library, the methods calling Pyroute commands are decorated with two functions (in this order):
  - @privileged.default.entrypoint
  - @lockutils.synchronized("privileged-ip-lib")

  "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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1833721/+subscriptions


Follow ups