Increase reboot bootstrap nodes timeout
Change-Id: I27647b0ae8c9cd4ee29122824e5a02c9d79432eb
This commit is contained in:
parent
23c4cf3494
commit
e53260806a
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue