Skip to content

ceph: dashboard integration tests - #500909

Closed
josh wants to merge 3 commits into
NixOS:masterfrom
josh:ceph-tests
Closed

josh wants to merge 3 commits into
NixOS:masterfrom
josh:ceph-tests

Conversation

@josh

@josh josh commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Hey nixpkgs ceph team, I wanted to see if I could help contribute to the ceph 20 upgrade effort. I know there were some concerns about keeping ceph-mgr modules like dashboard working through the python incompatible changes. The current integration test suite doesn't exercise code like the dashboard so I thought adding some additional coverage there could be helpful.

The ceph dashboard ui itself is built on top of the ceph resful api (which is different than the now deprecated restful module). So hitting it makes for a good way to see if the dashboard components are all working correctly. I did actually uncover a bug where ceph-mgr expects radosgw-admin in its path. I have a quick fix to ensure ceph bin is in the systemd unit path, but I feel like this would be better patched in a ceph-mgr wrapper maybe. It seems like there are similar issues in #494583 needing a wrapper for python3 discovery.

This branch merge base is currently before the major python changes so I can confirm these pass on 19.x, pre-20.x changes.

I'm not sure when it makes sense for this change to be ready. Maybe after #494583 is sorted out?

CC @benaryorg @nh2 @James-1701 @limwa

Things done

  • 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.

@josh josh mentioned this pull request Mar 18, 2026
7 of 13 tasks
@josh josh changed the title Ceph tests ceph: dashboard integration tests Mar 18, 2026
@nixpkgs-ci nixpkgs-ci Bot added 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. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Mar 18, 2026

@limwa limwa left a comment

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.

First of all, thank you so much for this contribution! More tests for ceph are always welcome!

Just a small question, mainly because in my understanding, if someone were to run radosgw without a systemd unit, it would fail to find the needed binaries.

By the way, I'm not part of the ceph nixpkgs team but thanks for the mention hahaha

5;
startLimitIntervalSec = 60 * 30; # 30 mins

path = [ ceph.out ];

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.

Wouldn't it be more correct to wrap the radosgw binary to append the ceph bin path to the PATH variable when running it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I agree, I do think the wrapper pattern for just ceph-mgr bin is probably a better solution. It seems like we may need a wrapper for python3 discovery as you mentioned. Another option is direct source patching in the absolute path. I was hoping these might be resolved in #494583 and only the test changes from this PR would be needed.

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 was hoping these might be resolved in #494583 and only the test changes from this PR would be needed.

Yeah, that makes sense! I'll try to look into the wrappers today to see what's needed.

@josh

josh commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

Closing as commits have been cherry picked into #494583. Thanks @benaryorg!

@josh josh closed this Mar 21, 2026
@josh
josh deleted the ceph-tests branch April 12, 2026 16:03
@josh josh mentioned this pull request Apr 23, 2026
3 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants