Repository navigation
Update ceph to 20.2.0 - #494887
Update ceph to 20.2.0#494887Risa-G wants to merge 4 commits into
Conversation
| openldap, | ||
| parted, | ||
| python311, # to get an idea which Python versions are supported by Ceph, see upstream `do_cmake.sh` (see `PYBUILD=` variable) | ||
| python313, # to get an idea which Python versions are supported by Ceph, see upstream `do_cmake.sh` (see `PYBUILD=` variable) |
There was a problem hiding this comment.
Given that Python 3.11 and Python 3.12 have issues with PyO3 which require additional patches, and IIRC PyO3 had additional changes intended for 3.13, have those patches landed?
Is the entire subinterpreter issue solved when running Ceph with Python 3.13 without any further patches?
- Edit: for reference: Ceph PyO3 tracking issue #380823
There was a problem hiding this comment.
I just ran the tests, this causes issues for the mgr due to lack of PyO3 handling:
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.614822] ceph-mgr[1065]: 2026-02-27T22:38:16.049+0000 7f3e5c6d1ac0 -1 mgr[py] Traceback (most recent call last):
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.616620] ceph-mgr[1065]: File "/nix/store/6zxscnqwxc1j4pw1jkdak967jjhldk7g-ceph-19.2.3-lib/lib/ceph/mgr/mgr_module.py", line 30, in <module>
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.618781] ceph-mgr[1065]: from mgr_util import profile_method
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.621221] ceph-mgr[1065]: File "/nix/store/6zxscnqwxc1j4pw1jkdak967jjhldk7g-ceph-19.2.3-lib/lib/ceph/mgr/mgr_util.py", line 6, in <module>
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.623323] ceph-mgr[1065]: import bcrypt
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.624185] ceph-mgr[1065]: File "/nix/store/lx2a8i61wr9zirkwn6ys74n6rwxqmqcw-python3-3.12.11-env/lib/python3.12/site-packages/bcrypt/__init__.py", line 13, in <module>
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.626632] ceph-mgr[1065]: from ._bcrypt import (
vm-test-run-basic-single-node-ceph-cluster> monA # [ 11.627615] ceph-mgr[1065]: ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576
At the same time it fails much more overtly because of what I'd venture a guess is something related to Python 3.13:
ceph: must succeed: ceph-volume lvm prepare --bluestore --data /dev/vdb --dmcrypt --no-systemd --osd-id 0 --osd-fsid 1c1b7ea9-06bf-4d30-9a01-37ac3a0254aa
ceph # exception caught by decorator
ceph # Traceback (most recent call last):
ceph # File "/nix/store/c3q05yd9681rzrrzkviss1hzxli13lan-ceph-19.2.3/lib/python3.12/site-packages/ceph_volume/decorators.py", line 59, in newfunc
ceph # return f(*a, **kw)
ceph # ^^^^^^^^^^^
ceph # File "/nix/store/c3q05yd9681rzrrzkviss1hzxli13lan-ceph-19.2.3/lib/python3.12/site-packages/ceph_volume/main.py", line 118, in main
ceph # self.enable_plugins()
ceph # File "/nix/store/c3q05yd9681rzrrzkviss1hzxli13lan-ceph-19.2.3/lib/python3.12/site-packages/ceph_volume/main.py", line 83, in enable_plugins
ceph # plugins = _load_library_extensions()
ceph # ^^^^^^^^^^^^^^^^^^^^^^^^^^
ceph # File "/nix/store/c3q05yd9681rzrrzkviss1hzxli13lan-ceph-19.2.3/lib/python3.12/site-packages/ceph_volume/main.py", line 188, in _load_library_extensions
ceph # for ep in get_entry_points(group=group):
ceph # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ceph # File "/nix/store/c3q05yd9681rzrrzkviss1hzxli13lan-ceph-19.2.3/lib/python3.12/site-packages/ceph_volume/main.py", line 14, in get_entry_points
ceph # return entry_points().get(group, []) # type: ignore
ceph # ^^^^^^^^^^^^^^^^^^
ceph # AttributeError: 'EntryPoints' object has no attribute 'get'
ceph # --> AttributeError: 'EntryPoints' object has no attribute 'get'
ceph: output:
!!! Traceback (most recent call last):
!!! File "<string>", line 40, in <module>
!!! ceph.succeed(
!!!
!!! RequestedAssertionFailed: command `ceph-volume lvm prepare --bluestore --data /dev/vdb --dmcrypt --no-systemd --osd-id 0 --osd-fsid 1c1b7ea9-06bf-4d30-9a01-37ac3a0254aa` failed (exit code 1)
Please note that there are NixOS tests for ceph, which are also exposed via the tests passthru attr.
If you want to run all of them in one go you can use something like
# `nom` looks a bit better though, if you have it installed
nix build --no-link --print-out-paths --print-build-logs --impure --expr '(import ./. {}).callPackage ({ linkFarm, ceph }: linkFarm "ceph-tests" ceph.tests) {}'Or if you simply want to run a single of the more comprehensive tests:
nix build --no-link --print-out-paths --print-build-logs -f . ceph.tests.ceph-single-node-bluestore-dmcryptThere was a problem hiding this comment.
That's pretty good to know. I'll get on that
Things done
Changelog: ceph tentacle
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.