Repository navigation
Conversation
limwa
left a comment
There was a problem hiding this comment.
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 ]; |
There was a problem hiding this comment.
Wouldn't it be more correct to wrap the radosgw binary to append the ceph bin path to the PATH variable when running it?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
Closing as commits have been cherry picked into #494583. Thanks @benaryorg! |
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
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.