#1102751 ceph-mgr fails to load modules with ImportError: PyO3 modules do not yet support subinterpreters

Package:
ceph-mgr
Source:
ceph-mgr
Description:
manager for the ceph distributed file system
Submitter:
Robin Slot
Date:
2026-08-21 15:49:02 UTC
Severity:
normal
#1102751#5
Date:
2025-04-12 14:31:32 UTC
From:
To:
Dear Maintainer,

After an upgrade from bookworm to trixie, ceph-mgr fails to load seemingly all modules:

[WRN] MGR_MODULE_DEPENDENCY: 14 mgr modules have failed dependencies
    Module 'balancer' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'crash' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'devicehealth' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'iostat' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'nfs' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'orchestrator' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'pg_autoscaler' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'progress' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'prometheus' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'rbd_support' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'restful' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'status' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'telemetry' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
    Module 'volumes' has failed dependency: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576

The mgr log has a bit more information:

Apr 12 15:31:11 gog ceph-mgr[562571]: 2025-04-12T15:31:11.122+0200 7f7c97a39fc0 -1 mgr[py] Module not found: 'mgr_module'
Apr 12 15:31:11 gog ceph-mgr[562571]: 2025-04-12T15:31:11.122+0200 7f7c97a39fc0 -1 mgr[py] Traceback (most recent call last):
Apr 12 15:31:11 gog ceph-mgr[562571]:   File "/usr/share/ceph/mgr/mgr_module.py", line 28, in <module>
Apr 12 15:31:11 gog ceph-mgr[562571]:     from mgr_util import profile_method
Apr 12 15:31:11 gog ceph-mgr[562571]:   File "/usr/share/ceph/mgr/mgr_util.py", line 6, in <module>
Apr 12 15:31:11 gog ceph-mgr[562571]:     import bcrypt
Apr 12 15:31:11 gog ceph-mgr[562571]:   File "/lib/python3/dist-packages/bcrypt/__init__.py", line 13, in <module>
Apr 12 15:31:11 gog ceph-mgr[562571]:     from ._bcrypt import (
Apr 12 15:31:11 gog ceph-mgr[562571]:     ...<11 lines>...
Apr 12 15:31:11 gog ceph-mgr[562571]:     )
Apr 12 15:31:11 gog ceph-mgr[562571]: ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
Apr 12 15:31:11 gog ceph-mgr[562571]: 2025-04-12T15:31:11.122+0200 7f7c97a39fc0 -1 mgr[py] Class not found in module 'pg_autoscaler'
Apr 12 15:31:11 gog ceph-mgr[562571]: 2025-04-12T15:31:11.122+0200 7f7c97a39fc0 -1 mgr[py] Error loading module 'pg_autoscaler': (22) Invalid argument

#1102751#10
Date:
2025-05-16 23:53:46 UTC
From:
To:
This particular bug intertwines with a half-dozen interconnected
issues. I did my best to summarize them here:

https://github.com/pyca/cryptography/issues/12080#issuecomment-2510243984

There are three or four proposed patches, and even more discussion. I
think maybe one patch stood out as "best", not sure.

#1102751#15
Date:
2026-08-21 15:46:33 UTC
From:
To:
close 1102751 20.2.2+ds-1
thanks

Hi,

this is not an issue anymore with ceph 20, thus closing this bug.

Regards,
Daniel