Bug 1862364
| Summary: | Race condition in oslo_privsep daemon | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Cédric Jeanneret <cjeanner> |
| Component: | python-oslo-privsep | Assignee: | mbollo |
| Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 16.1 (Train) | CC: | bcafarel, jjoyce, jschluet, lmiccini, mbollo, pkomarov, ralonsoh, slinaber, tvignaud |
| Target Milestone: | z3 | Keywords: | Rebase, Triaged |
| Target Release: | 16.1 (Train on RHEL 8.2) | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | python-oslo-privsep-1.33.4-1.el8ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-12-15 18:36:15 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1783195 | ||
|
Description
Cédric Jeanneret
2020-07-31 08:42:37 UTC
Hello, Looks like to an eventlet issue. Indeed, 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 [1][2][3] when the privileged daemon is forked. That will help to prevent this kind of hanging process and those command timeouts. [1] https://review.opendev.org/#/c/740970/ [2] https://review.opendev.org/#/c/747906/ [3] https://review.opendev.org/#/c/747907/ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.3 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5413 |