pip install yardstick failed in Apex 43/33043/1
authorJingLu5 <lvjing5@huawei.com>
Thu, 6 Apr 2017 05:02:12 +0000 (05:02 +0000)
committerJing Lu <lvjing5@huawei.com>
Thu, 6 Apr 2017 07:01:27 +0000 (07:01 +0000)
JIRA: YARDSTICK-625

In Apex, yardstick uninstall and install via pip failed.
This bug blocks yardstick CI jobs.
This patch enables pip install yardstick in editable mode.
So the install_yardstick() in yardstick_verify is unnecessary.

Change-Id: If290dac5fee5584601064ae9753ae2340643d3ca
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit d2cb7ce7331d8da4c3b5b70b09dac49cf65d1710)

install.sh
tests/ci/load_images.sh
tests/ci/yardstick-verify

index 75618dd..25a4f59 100755 (executable)
@@ -59,7 +59,7 @@ git config --global http.sslVerify false
 # install yardstick + dependencies
 easy_install -U pip
 pip install -r requirements.txt
-pip install .
+pip install -e .
 
 /bin/bash "$(pwd)/api/api-prepare.sh"
 
index 8759910..8521441 100755 (executable)
@@ -265,8 +265,6 @@ main()
         for filename in tests/opnfv/test_cases/*; do
             sed -i "s/cidr: '10.0.1.0\/24'/cidr: '10.3.1.0\/24'/g" "${filename}"
         done
-        # Update file changes
-        pip install -U .
     else
         load_cirros_image
         load_ubuntu_image
index 2986c9f..096ea53 100755 (executable)
@@ -97,18 +97,6 @@ error_exit()
 set -o errexit
 set -o pipefail
 
-install_yardstick()
-{
-    echo
-    echo "========== Installing yardstick =========="
-
-    # uninstall previous version
-    pip uninstall -y yardstick || true
-
-    # Install yardstick
-    pip install .
-}
-
 install_storperf()
 {
     # Install Storper on huawei-pod1
@@ -320,9 +308,6 @@ main()
         echo "  external network: $net"
     done
 
-    # install yardstick
-    install_yardstick
-
     source $YARDSTICK_REPO_DIR/tests/ci/clean_images.sh
 
     trap "error_exit" EXIT SIGTERM