]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/ceph-helpers.sh: fix mgr module path
authorNoah Watkins <nwatkins@redhat.com>
Fri, 17 Aug 2018 22:21:57 +0000 (15:21 -0700)
committerNoah Watkins <nwatkins@redhat.com>
Fri, 17 Aug 2018 22:21:57 +0000 (15:21 -0700)
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>
qa/run-standalone.sh
qa/standalone/ceph-helpers.sh

index 18a9fec67bd4548f878130393f346868907c3791..f7102bf59fd3fede9b5fee905e96dbbd4ca22590 100755 (executable)
@@ -12,8 +12,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
@@ -22,7 +20,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
index 9072625968e96da79314bbf9bc9e8a81cb4c9910..e5c8748870da1211b3697fe27c22c8446e45d624 100755 (executable)
@@ -550,6 +550,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
 }