Project

General

Profile

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

Added by Yuechi Sun about 1 month ago. Updated about 1 month ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
umbrella, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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 Actions #1

  • Status changed from New to Fix Under Review
  • Assignee set to Yuechi Sun
Actions

Also available in: PDF Atom