← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1870352] [NEW] "ctypes.CDLL" C functions could release the GIL during the execution call

 

Public bug reported:

Some Linux IP library functions make use of "ctype.CDLL" methods
(create_netns, remove_netns). Those methods are called inside a privsep
context; that means the function reference and the arguments are passed
to a privileged context that will execute the method. "privsep" makes
use of eventlet to implement multitasking. If the method executed
returns the GIL, nothing guarantees that the eventlet executor will
return it again to this task. Therefore we can see, in the CI, timeouts
during the execution of those functions.

Log:
https://81525168d755db537877-a5e4e29d4d6432c5c7202337ef0214bc.ssl.cf1.rackcdn.com/714731/1/gate
/neutron-fullstack/8a9753b/testr_results.html

Log snippet: http://paste.openstack.org/show/791531/

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

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

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

Title:
  "ctypes.CDLL" C functions could release the GIL during the execution
  call

Status in neutron:
  New

Bug description:
  Some Linux IP library functions make use of "ctype.CDLL" methods
  (create_netns, remove_netns). Those methods are called inside a
  privsep context; that means the function reference and the arguments
  are passed to a privileged context that will execute the method.
  "privsep" makes use of eventlet to implement multitasking. If the
  method executed returns the GIL, nothing guarantees that the eventlet
  executor will return it again to this task. Therefore we can see, in
  the CI, timeouts during the execution of those functions.

  Log:
  https://81525168d755db537877-a5e4e29d4d6432c5c7202337ef0214bc.ssl.cf1.rackcdn.com/714731/1/gate
  /neutron-fullstack/8a9753b/testr_results.html

  Log snippet: http://paste.openstack.org/show/791531/

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


Follow ups