Skip to content

Ceph PyO3 tracking issue #380823

@nh2

Description

@nh2

Extracted from #281858 (comment)


Ceph uses CPython sub-interpreters in a way that no longer works with newer libraries.

This requires ugly dependency version backport hacks/vendoring in nixpkgs:

# Ceph does not support the following yet:
# * `bcrypt` > 4.0
# * `cryptography` > 40
# See:
# * https://github.com/NixOS/nixpkgs/pull/281858#issuecomment-1899358602
# * Upstream issue: https://tracker.ceph.com/issues/63529
# > Python Sub-Interpreter Model Used by ceph-mgr Incompatible With Python Modules Based on PyO3
# * Moved to issue: https://tracker.ceph.com/issues/64213
# > MGR modules incompatible with later PyO3 versions - PyO3 modules may only be initialized once per interpreter process

This needs to be fixed in upstream Ceph.

We already track tihs in the linked code comments, but this issue tracks it also in an issue so we can have discussion as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problems6.topic: pythonPython is a high-level, general-purpose programming language.9.needs: clean-upSomebody please clean up this mess!
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions