Ceph developers, please note: changes to 'ceph' CLI tool in master branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A large restructuring of the 'ceph' command-line tool has been pushed to the master branch (and will be present in v0.65 as well). The ceph tool you execute is now a Python script that talks to the cluster through rados.py, the Python binding to librados.so (and, of course, then, with librados.so).

Those who install/upgrade using packages will get the coordinated versions of all the pieces, and can stop reading except as a matter of interest.

However, those who build from source will need to be aware that PYTHONPATH must include the source versions of src/pybind/rados.py, and LD_LIBRARY_PATH must include .libs. Currently, you must set these in your environment before running ./ceph.

I've just pushed a commit that will try to automatically determine this situation: if the path to the ceph tool ends in src/, and there exist .libs and pybind directories there, the tool will reset LD_LIBRARY_PATH and PYTHONPATH and re-exec itself so that LD_LIBRARY_PATH takes effect.
It also issues a message to stderr noting this "developer mode":

*** DEVELOPER MODE: setting PYTHONPATH and LD_LIBRARY_PATH

This latest convenience feature for developers is in
commit e5184ea95031b7bea4264062de083045767d5dc3 in master.

--
Dan Mick, Filesystem Engineering
Inktank Storage, Inc.	http://inktank.com
Ceph docs: http://ceph.com/docs
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux