test: fix bug: missing installer_ip in scp args 51/10251/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Fri, 19 Feb 2016 01:05:01 +0000 (10:05 +0900)
committerRyota Mibu <r-mibu@cq.jp.nec.com>
Fri, 19 Feb 2016 01:30:32 +0000 (01:30 +0000)
Change-Id: Ia9bf6ffb8a6bd4f2672aa50bb7841a7dc37e48ea
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
(cherry picked from commit ac95693eedfd0ec9593e46f9a57f5d989e25f9bd)

tests/run.sh

index ffb349a..39f60ca 100755 (executable)
@@ -42,10 +42,11 @@ if [[ "$COMPUTE_IP" == "none" ]] ; then
 fi
 
 prepare_compute_ssh() {
+    # verify connectivity to target compute host
     ping -c 1 "$COMPUTE_IP"
 
     # get ssh key from installer node
-    sudo scp $ssh_opts /home/stack/.ssh/id_rsa instack_key
+    sudo scp $ssh_opts root@"$INSTALLER_IP":/home/stack/.ssh/id_rsa instack_key
     if [ ! -r instack_key ]; then
         sudo chown $(whoami):$(whoami) instack_key
     fi