Privileged daemon should not monkey patch "os", "threading" or "socket" libraries
Bug #1887506 reported by
Rodolfo Alonso
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.privsep |
Fix Released
|
Undecided
|
Rodolfo Alonso |
Bug Description
Daemon is an independent process that executes, in privileged mode, the methods passed. Some of those methods make use of libraries like "os" or "threading". Sometimes, those methods are not evenlet safe: the GIL is given to the next user thread and is never returned, that ends in a command timeout.
Unless there is a major reason to monkey patch those libraries, I suggest to revert the monkey patched libraries when the privileged daemon is forked. That will prevent those command timeouts so frequents in CIs like Neutron.
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/740970
Review: https:/