summaryrefslogtreecommitdiffstats
path: root/fuel/prototypes/auto-deploy/deploy/dha-adapters
diff options
context:
space:
mode:
authorStefan K. Berg <stefan.k.berg@ericsson.com>2015-05-12 15:59:17 +0200
committerStefan K. Berg <stefan.k.berg@ericsson.com>2015-05-12 17:05:32 +0200
commit29221e99ac00728c878c0a2426d08510325cc572 (patch)
tree18bd21d481ea4e10c7b70225dd286ef33151d3fb /fuel/prototypes/auto-deploy/deploy/dha-adapters
parent129ffe434c010508f26416983835e80dec0cc1d8 (diff)
Config and corrections for auto deploy
- Corrected create_templates in order to compensate for a malformed information depending when configuration is copied. - Made the DHA IPMI adapter repeat every IPMI command three times - for some reason needed with POD1 at LF, the reason is unknown. - Added DEA.yaml for Ericsson Montreal and LF POD1. The DHA.yaml contains IPMI passwords so I am not really eager to put it into Git without a discussion about the security implications. JIRA Change-Id: I667d73651c47c06d2ae17cc9c574bd021ff63a25 Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
Diffstat (limited to 'fuel/prototypes/auto-deploy/deploy/dha-adapters')
-rwxr-xr-xfuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh11
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