1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
19 SSHPASS="r00tme" sshpass -e ssh -o UserKnownHostsFile=${tmpdir}/known_hosts \
20 -o StrictHostKeyChecking=no -o ConnectTimeout=15 "$@"
24 SSHPASS="r00tme" sshpass -e scp -o UserKnownHostsFile=${tmpdir}/known_hosts \
25 -o StrictHostKeyChecking=no -o ConnectTimeout=15 "$@"
30 ssh root@`dea getFuelIp` "fuel $@"
34 # TODO: Move numberOfNodes into the DEA API
36 fuel node | tail -n +3 | grep -v "^$" | wc -l
39 # TODO: Move numberOfNodesUp into the DEA API
41 fuel node | tail -n +3 | grep -v "^$" | grep True | wc -l
45 # Wait for node count to increase
51 initCnt=`numberOfNodesUp`
52 expectCnt=$[initCnt+1]
56 if [ $cnt -eq $expectCnt ]; then
58 elif [ $cnt -lt $initCnt ]; then
59 error_exit "Node count decreased while waiting, $initCnt -> $cnt"
60 elif [ $cnt -gt $expectCnt ]; then
61 error_exit "Node count exceeded expect count, $cnt > $expectCnt"