-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
ceph: Bring back ceph-volume #78243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ceph: Bring back ceph-volume #78243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding this!
Can we update the test to include a bluestore volume, or at least ensure ceph-volume
exists?
@@ -136,6 +137,7 @@ in rec { | |||
# for pybind/rgw to find internal dep | |||
export LD_LIBRARY_PATH="$PWD/build/lib:$LD_LIBRARY_PATH" | |||
# install target needs to be in PYTHONPATH for "*.pth support" check to succeed | |||
export PYTHONPATH=${ceph-python-env}/lib/python${pyVersion}/site-packages:$lib/lib/python${pyVersion}/site-packages/:$out/lib/python${pyVersion}/site-packages/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a line here
# set PYTHONPATH, so the build system doesn't silently skip installing `ceph-volume`
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srhb @flokli Why was this needed?
Isn't this what
pythonPath = [ ceph-python-env "${placeholder "out"}/${ceph-python-env.sitePackages}" ];
does? (I haven't found yet where exactly the usage of pythonPath
in mkDerivation
is implemented)
I found it confusing that we currently set both, so it would be nice to understand why pythonPath
isn't enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. @srhb ?
5279ff8
to
9be2935
Compare
9be2935
to
585ac58
Compare
@GrahamcOfBorg test ceph-single-node ceph-multi-node |
Motivation for this change
In #73187 ceph-volume unfortunately got lost. I completely missed this in the backport as well, which means that OSDs using bluestore become inoperable. Therefore, this needs a backport asap.
Things done
Brought back the (admittedly hacky) pythonpath shenanigans that enable the build system to pick up the necessities and not silently skip installing ceph-volume and friends.
Deployed to a testing cluster and noted that ceph-volume correctly activates bluestore volumes. It seems the python wrapper is no longer necessary, the path is baked into the .py file.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)