Repository navigation
Conversation
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
tchaikov
left a comment
There was a problem hiding this comment.
Good catch. # stringizes the argument without expanding it, so program_name has been L"MGR_PYTHON_EXECUTABLE" since 4600307. I reproduced it with a small embedding program: sys.executable is '', and ThreadPool() under forkserver dies with BrokenPipeError from the resource tracker. with this change it works!
since this breaks the cephadm module on Python 3.14, it's a bug fix rather than a cleanup. could you file a tracker issue and reference it, plus Fixes: 46003075924? I'd like to get it into tentacle and umbrella too, as distros building those with 3.14 will hit this. The patch is small enough to backport cleanly.
nit: on 3.13 I still got sys.prefix == '/usr' (the build-time fallback), so I'd drop the "derived from the current directory" part from the commit message.
8521e74 to
fcf3bf9
Compare
WCHAR() stringizes its argument without expanding it, so program_name has always been the literal "MGR_PYTHON_EXECUTABLE". Python then cannot find its executable and sys.executable is empty. Since Python 3.14 multiprocessing defaults to forkserver on Linux and spawns its helpers with sys.executable, so creating the ThreadPool in the cephadm module fails with BrokenPipeError and the module does not load. Pass the byte string to PyConfig_SetBytesString() instead. Fixes: 4600307 Fixes: https://tracker.ceph.com/issues/82073 Signed-off-by: Sun Yuechi <[email protected]>
fcf3bf9 to
491b36b
Compare
|
@tchaikov Thanks, updated. |
|
This PR has been added to wip-bharath9-testing-20261027.065249-main. |
WCHAR() stringizes its argument without expanding it, so program_name has always been the literal "MGR_PYTHON_EXECUTABLE". Python then cannot find its executable: sys.executable is empty and sys.prefix is derived from the current directory.
Since Python 3.14 multiprocessing defaults to forkserver on Linux and spawns its helpers with sys.executable, so creating the ThreadPool in the cephadm module fails with BrokenPipeError and the module does not load.
Pass the byte string to PyConfig_SetBytesString() instead.
Fixes: https://tracker.ceph.com/issues/82073
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.