X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=fuel%2Fprototypes%2Fauto-deploy%2Fdeploy%2Fdha-adapters%2Fipmi.sh;h=37deb024d32be2f77cceb4b8fdd6dd882064c0ed;hb=563547b4a9f44090f32c0e17d040114854563760;hp=00a621d983a4dbdd14d9261cdd17d20d439d1ec6;hpb=129ffe434c010508f26416983835e80dec0cc1d8;p=genesis.git 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