Bug #6595
closed
Hardcoded install path in ceph-disk
Added by Adam Manzanares over 10 years ago.
Updated over 10 years ago.
Description
I noticed that ceph-disk assumes that ceph was installed to /usr/bin . I believe it would be better to take a more flexible approach based on the users PATH environment variable.
- Assignee set to Alfredo Deza
- Priority changed from Normal to High
- Status changed from New to Need More Info
Did you have any issues with how the path is set for the ceph executable?
It would be useful to understand what flexibility is that you are looking for. It is convenient to not have to deal with $PATH because we do know (and control) the locations of CLI scripts.
There are all kinds of issues relying implicitly on $PATH, like for example, it is not always set on non-interactive shells (e.g. via ssh).
How did you manage to get ceph executables in that path? Is this a custom install?
Everywhere in ceph-disk it references `/usr/bin/ceph` and we test ceph-disk usage for all the platforms we support. If some of those is installing on a different place
that would be a bug that needs fixing asap.
Can you go into more detail what distro/version you are using and how you got ceph installed?
This is a custom install we are building ceph from source. Did not provide the --prefix argument to ./configure and ended up with executables in /usr/local/bin.
- Status changed from Need More Info to Resolved
All subprocess calls in ceph-disk will use a PATH helper to find the correct executables regardless if $PATH is set or not.
Released in Ceph version 0.76
Also available in: Atom
PDF