callers of get_python_path were not passing in a $1 parameter, so
ceph_lib was an empty string resulting in an invalid path to the built
cython modules. assume this is called from the `lib` parent directory.
pass path to the manager modules when starting ceph-mgr.
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
(cherry picked from commit
7d3fa9bda3b0160c872e388c9f75cd1cabf9d4b5)
}
function get_python_path() {
- local ceph_lib=$1
- shift
local py_ver=$(get_cmake_variable MGR_PYTHON_VERSION | cut -d '.' -f1)
if [ -z "${py_ver}" ]; then
if [ $(get_cmake_variable WITH_PYTHON2) = ON ]; then
py_ver=3
fi
fi
- echo $(realpath ../src/pybind):$ceph_lib/cython_modules/lib.$py_ver
+ echo $(realpath ../src/pybind):$(pwd)/lib/cython_modules/lib.$py_ver
}
if [ `uname` = FreeBSD ]; then
--admin-socket=$(get_asok_path) \
--run-dir=$dir \
--pid-file=$dir/\$name.pid \
+ --mgr-module-path=$(realpath ${CEPH_ROOT}/src/pybind/mgr) \
"$@" || return 1
}