• Bug#1102751: ceph-mgr fails to load modules with ImportError: PyO3 modu

    From Robin Slot@21:1/5 to All on Sat Apr 12 16:40:01 2025
    Package: ceph-mgr
    Version: 18.2.4+ds-13+b1
    Severity: important
    X-Debbugs-Cc: robin@rslot.nl

    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

    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.21-amd64 (SMP w/8 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages ceph-mgr depends on:
    ii ceph-common 18.2.4+ds-13+b1
    ii ceph-mgr-modules-core 18.2.4+ds-13
    ii libboost-python1.83.0 [libboost-python1.83.0-py313] 1.83.0-4.2
    ii libc6 2.41-6
    ii libfmt10 10.1.1+ds1-4
    ii libgcc-s1 14.2.0-19
    ii libgoogle-perftools4t64 2.16-1
    ii libpython3.13 3.13.2-3
    ii librados2 18.2.4+ds-13+b1
    ii libsqlite3-0 3.46.1-2
    ii libsqlite3-mod-ceph 18.2.4+ds-13+b1
    ii libstdc++6 14.2.0-19
    ii python3-bcrypt 4.2.0-2.1+b1
    ii python3-ceph-argparse 18.2.4+ds-13+b1
    ii python3-cephfs 18.2.4+ds-13+b1
    ii python3-cherrypy3 18.10.0-1
    ii python3-jwt 2.10.1-2
    ii python3-openssl 25.0.0-1
    ii python3-pecan 1.5.1-6
    ii python3-requests 2.32.3+dfsg-4
    ii python3-werkzeug 3.1.3-2
    ii python3-yaml 6.0.2-1+b2

    ceph-mgr recommends no packages.

    Versions of packages ceph-mgr suggests:
    pn ceph-mgr-dashboard <none>
    pn ceph-mgr-diskprediction-local <none>
    pn ceph-mgr-rook <none>

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)