BugFix: fix storperf_admin-rc problem 09/18909/3
authorJingLu5 <lvjing5@huawei.com>
Thu, 18 Aug 2016 06:53:37 +0000 (14:53 +0800)
committerJingLu5 <lvjing5@huawei.com>
Thu, 18 Aug 2016 07:05:13 +0000 (15:05 +0800)
Change-Id: I187e3e00d38745288f6fccd58ee6bd3d3aea06c9
Signed-off-by: JingLu5 <lvjing5@huawei.com>
tests/ci/docker/yardstick-ci/Dockerfile
tests/ci/prepare_env.sh
tests/ci/scp_storperf_admin-rc.sh [new file with mode: 0644]

index 684f471..da755d1 100644 (file)
@@ -20,6 +20,7 @@ ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
 
 RUN apt-get update && apt-get install -y \
     wget \
+    expect \
     curl \
     git \
     sshpass \
index 35118b1..cb83d9c 100755 (executable)
@@ -56,6 +56,9 @@ export EXTERNAL_NETWORK INSTALLER_TYPE DEPLOY_TYPE NODE_NAME
 # Prepare a admin-rc file for StorPerf integration
 $YARDSTICK_REPO_DIR/tests/ci/prepare_storperf_admin-rc.sh
 
+# copy a admin-rc file for StorPerf integration to the deployment location
+expect $YARDSTICK_REPO_DIR/tests/ci/scp_storperf_admin-rc.sh
+
 # Fetching id_rsa file from jump_server..."
 verify_connectivity() {
     local ip=$1
diff --git a/tests/ci/scp_storperf_admin-rc.sh b/tests/ci/scp_storperf_admin-rc.sh
new file mode 100644 (file)
index 0000000..fd94aaa
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/expect
+set timeout 30
+
+spawn scp -o StrictHostKeyChecking=no /root/storperf_admin-rc root@192.168.200.1:/root/storperf_admin-rc
+expect "root@192.168.200.1's password: "
+send "root\r"
+interact