Increase reboot bootstrap nodes timeout

Change-Id: I27647b0ae8c9cd4ee29122824e5a02c9d79432eb
This commit is contained in:
Aviram Bar-Haim 2016-03-20 16:16:15 +02:00
parent 23c4cf3494
commit e53260806a
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ name: mellanox-plugin
title: Mellanox Openstack Features
# Plugin version
version: 2.0.39
version: 2.0.40
# Description
description: Enable features over Mellanox hardware

View File

@ -73,11 +73,11 @@ do
ping -c 2 $ip &> /dev/null
if [ $? -eq 0 ];then
ssh $ip -o BatchMode=yes -o StrictHostKeyChecking=no reboot &> /dev/null
trials=10
trials=20
log "waiting for node-$id to go offline."
while ping -c 2 $ip &> /dev/null && [ $trials -ne 0 ];do
((trials=$trials-1))
sleep 1;
sleep 5;
done
if [ $trials -eq 0 ];then
log "node-$id reboot failed."