From bf3a1a2922c986e69b7ddb2055e5c6ee845a9e4d Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Fri, 17 Aug 2018 15:21:57 -0700 Subject: [PATCH] qa/standalone/ceph-helpers.sh: fix mgr module path 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 (cherry picked from commit 7d3fa9bda3b0160c872e388c9f75cd1cabf9d4b5) --- qa/run-standalone.sh | 4 +--- qa/standalone/ceph-helpers.sh | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 039cb3bcc23d6..e9978c1d8bcfb 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -18,8 +18,6 @@ function get_cmake_variable() { } 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 @@ -28,7 +26,7 @@ function get_python_path() { 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 diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index 293ae280f611e..8def1c0bf011d 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -560,6 +560,7 @@ function run_mgr() { --admin-socket=$(get_asok_path) \ --run-dir=$dir \ --pid-file=$dir/\$name.pid \ + --mgr-module-path=$(realpath ${CEPH_ROOT}/src/pybind/mgr) \ "$@" || return 1 } -- 2.39.5