Merge "Update rally version"
[functest.git] / functest / opnfv_tests / features / sfc / server_presetup_CI.bash
1 #!/bin/bash
2 set -e
3 ssh_options='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
4 BASEDIR=`dirname $0`
5 INSTALLER_IP=${INSTALLER_IP:-10.20.0.2}
6
7 pushd $BASEDIR
8 ip=$(sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'fuel node'|grep controller|awk '{print $10}' | head -1)
9 echo $ip
10
11 sshpass -p r00tme scp $ssh_options delete.sh ${INSTALLER_IP}:/root
12 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'scp '"$ip"':/root/tackerc .'
13 sshpass -p r00tme scp $ssh_options ${INSTALLER_IP}:/root/tackerc $BASEDIR