From: Zack Cerza Date: Fri, 30 Nov 2018 22:41:07 +0000 (+0000) Subject: mgr/dashboard: Fix PYTHONPATH for test runner X-Git-Tag: v14.1.0~730^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F25359%2Fhead;p=ceph.git mgr/dashboard: Fix PYTHONPATH for test runner A new mgr module ('volumes') pulls in src/pybind/ceph_volume_client.py; the wrapper script that we use to run backend API tests needs to include that in PYTHONPATH, or else the cluster will be stuck in HEALTH_WARN with the message: "Module 'volumes' has failed dependency: No module named ceph_volume_client". Signed-off-by: Zack Cerza --- diff --git a/src/pybind/mgr/dashboard/run-backend-api-tests.sh b/src/pybind/mgr/dashboard/run-backend-api-tests.sh index 070a7b7e6acf..c9efb2d5bc17 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-tests.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-tests.sh @@ -115,7 +115,7 @@ run_teuthology_tests() { export PATH=$BUILD_DIR/bin:$PATH export LD_LIBRARY_PATH=$BUILD_DIR/lib/cython_modules/lib.${CEPH_PY_VERSION_MAJOR}/:$BUILD_DIR/lib - export PYTHONPATH=$TEMP_DIR/teuthology:$BUILD_DIR/../qa:$BUILD_DIR/lib/cython_modules/lib.${CEPH_PY_VERSION_MAJOR}/ + export PYTHONPATH=$TEMP_DIR/teuthology:$BUILD_DIR/../qa:$BUILD_DIR/lib/cython_modules/lib.${CEPH_PY_VERSION_MAJOR}/:$BUILD_DIR/../src/pybind eval python ../qa/tasks/vstart_runner.py $TEST_CASES deactivate