Actions
Bug #82073
open
YS
YS
mgr: program_name is the literal "MGR_PYTHON_EXECUTABLE", cephadm module fails to load on Python 3.14
Bug #82073:
mgr: program_name is the literal "MGR_PYTHON_EXECUTABLE", cephadm module fails to load on Python 3.14
Due date:
% Done:
0%
Source:
Community (dev)
Backport:
umbrella, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Description
PyModule's WCHAR stringizes its argument without expanding it, so
Py_SetProgramName()/PyConfig.program_name has been L"MGR_PYTHON_EXECUTABLE"
since 46003075924 (mgr: be compatible with py3). Python then cannot locate
its executable: sys.executable is ''.
Since Python 3.14 multiprocessing defaults to forkserver on Linux and starts
its helpers with sys.executable, so ThreadPool() in the cephadm module fails
with BrokenPipeError from the resource tracker and the module does not load.
Fix: pass the byte string to PyConfig_SetBytesString() instead.
KC Updated by Kefu Chai about 1 month ago
- Status changed from New to Fix Under Review
- Assignee set to Yuechi Sun
Actions