Code Review
/
genesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Updates docs for SR1 with final revision
[genesis.git]
/
fuel
/
prototypes
/
auto-deploy
/
deploy
/
dha-adapters
/
ipmi.sh
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
(executable)
--- 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 ipmiIp
local ipmiUser
local ipmiPass
+ local i
nodeId=$1
shift
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"
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 \
ipmitool -I lanplus -A password -H $ipmiIp -U $ipmiUser -P $ipmiPass \
- $@
+
$@
}
# Internal functions END
}
# Internal functions END