summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-19 18:55:27 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-19 18:55:27 +0900
commitabe65660eb689b6717a77aeeda8e445c2c68099b (patch)
tree498f8d32d2b0d9574f44b859e913a72f5ce73379 /tests
parentfe0f78ff802a48951f2f5771cdd38b263f49a0c6 (diff)
fix login to controller nodes
Change-Id: I9a85923b1b1766435280aeddfcebfaccbbb4e098 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index abbe2485..477d9c2f 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -227,7 +227,7 @@ start_consumer() {
for ip in $CONTROLLER_IPS
do
forward_rule="-R $CONSUMER_PORT:localhost:$CONSUMER_PORT"
- tunnel_command="sudo ssh $ssh_opts $ip $forward_rule sleep 600"
+ tunnel_command="sudo ssh $ssh_opts_cpu $COMPUTE_USER@$ip $forward_rule sleep 600"
$tunnel_command > "ssh_tunnel.${ip}.log" 2>&1 < /dev/null &
done
}
@@ -241,7 +241,7 @@ stop_consumer() {
for ip in $CONTROLLER_IPS
do
forward_rule="-R $CONSUMER_PORT:localhost:$CONSUMER_PORT"
- tunnel_command="sudo ssh $ssh_opts $ip $forward_rule sleep 600"
+ tunnel_command="sudo ssh $ssh_opts_cpu $COMPUTE_USER@$ip $forward_rule sleep 600"
kill $(pgrep -f "$tunnel_command")
print_log "ssh_tunnel.${ip}.log"
done