Skip to content

Update ceph to 20.2.0 - #494887

Closed
Risa-G wants to merge 4 commits into
NixOS:masterfrom
Risa-G:update-ceph
Closed

Risa-G wants to merge 4 commits into
NixOS:masterfrom
Risa-G:update-ceph

Conversation

@Risa-G

@Risa-G Risa-G commented Feb 27, 2026

Copy link
Copy Markdown

Things done

  • Updated ceph from 19.2.3 to 20.2.0
  • Removed the old python dependency overrides
  • Added build flags that can be overridden

Changelog: ceph tentacle

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added the 12.first-time contribution This PR is the author's first one; please be gentle! label Feb 27, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 12.approvals: 1 This PR was reviewed and approved by one person. labels Feb 27, 2026
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)

@benaryorg benaryorg Feb 27, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-dmcrypt

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty good to know. I'll get on that

This was referenced Feb 27, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 11, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 13, 2026
@Risa-G Risa-G closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants