"ctypes.CDLL" C functions could release the GIL during the execution call
Bug #1870352 reported by
Rodolfo Alonso
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Rodolfo Alonso |
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 snippet: http://
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
Changed in neutron: | |
importance: | Undecided → High |
tags: | added: neutron-proactive-backport-potential |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/717017
Review: https:/