diff options
author | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2015-05-12 15:28:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-05-12 15:28:36 +0000 |
commit | f5c84d6d16fcb00afdf7d6e0bcc1f3cef3f7e33d (patch) | |
tree | 0f4b35e21dbd59fc7805bf757ea5f226da87113c /fuel/prototypes/auto-deploy/deploy | |
parent | b9bbe514232c99f203df46873b2d290cbd4196c6 (diff) | |
parent | 29221e99ac00728c878c0a2426d08510325cc572 (diff) |
Merge "Config and corrections for auto deploy"
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 |