From 29221e99ac00728c878c0a2426d08510325cc572 Mon Sep 17 00:00:00 2001 From: "Stefan K. Berg" Date: Tue, 12 May 2015 15:59:17 +0200 Subject: 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 --- fuel/prototypes/auto-deploy/deploy/dha-adapters/ipmi.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'fuel/prototypes/auto-deploy/deploy') 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 -- cgit 1.2.3-korg