diff options
Diffstat (limited to 'fuel/prototypes/auto-deploy/deploy')
-rwxr-xr-x | fuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh b/fuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh index 00a621d..37deb02 100755 --- a/fuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh +++ b/fuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh @@ -47,6 +47,7 @@ dha_f_ipmi() local ipmiIp local ipmiUser local ipmiPass + local i nodeId=$1 shift @@ -59,8 +60,16 @@ dha_f_ipmi() test -n "$ipmiUser" || error_exit "Could not get IPMI username" test -n "$ipmiPass" || error_exit "Could not get IPMI password" + # Repeat three times for good measure (some hardware seems + # weird) + for i in 1 2 + do + ipmitool -I lanplus -A password -H $ipmiIp -U $ipmiUser -P $ipmiPass \ + $@ >/dev/null 2>&1 + sleep 1 + done ipmitool -I lanplus -A password -H $ipmiIp -U $ipmiUser -P $ipmiPass \ - $@ + $@ } # Internal functions END |