add several attempts to connect in upgrade test
This commit is contained in:
@ -92,19 +92,25 @@ else
|
|||||||
maxscale_start_cmd="sudo ./maxscale_start.sh 2> /dev/null &"
|
maxscale_start_cmd="sudo ./maxscale_start.sh 2> /dev/null &"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ssh $sshopt "sudo cp $cnf_file /etc/maxscale.cnf"
|
ssh $sshopt "sudo cp $cnf_file /etc/maxscale.cnf"
|
||||||
ssh $sshopt "$maxscale_start_cmd" &
|
ssh $sshopt "$maxscale_start_cmd" &
|
||||||
pid_to_kill=$!
|
pid_to_kill=$!
|
||||||
|
|
||||||
sleep 10
|
for i in {1..10}
|
||||||
|
do
|
||||||
|
sleep 5
|
||||||
|
ssh $sshopt $maxadmin_command
|
||||||
|
maxadm_exit=$?
|
||||||
|
if [ $maxadm_exit == 0 ] ; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
ssh $sshopt $maxadmin_command
|
if [ $maxadm_exit != 0 ] ; then
|
||||||
if [ $? != 0 ] ; then
|
|
||||||
echo "Maxadmin executing error"
|
echo "Maxadmin executing error"
|
||||||
res=1
|
res=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
maxadmin_out=`ssh $sshopt $maxadmin_command`
|
maxadmin_out=`ssh $sshopt $maxadmin_command`
|
||||||
echo $maxadmin_out | grep "CLI"
|
echo $maxadmin_out | grep "CLI"
|
||||||
if [ $? != 0 ] ; then
|
if [ $? != 0 ] ; then
|
||||||
|
Reference in New Issue
Block a user