2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

After the network commands are issued, pause for OpenPower case

This commit is contained in:
Victor Hu
2016-06-14 21:03:47 -04:00
parent 761ff38a2e
commit 4a03ed50dd

View File

@@ -27,7 +27,7 @@ TIMEOUT=15
#
function cold_reset_bmc() {
if [ -z $XPROD ]; then
logger -s -t $log_label -p local4.crit "FATAL ERROR - XPROD must be set before calling ${FUNCNAME[0]}"
logger -s -t $log_label -p local4.crit "CRITICAL ERROR - XPROD must be set before calling ${FUNCNAME[0]}"
exit 1
fi
@@ -82,14 +82,16 @@ function cold_reset_bmc() {
#
function snooze() {
if [ -z $XPROD ]; then
logger -s -t $log_label -p local4.crit "FATAL ERROR - XPROD must be set before calling ${FUNCNAME[0]}"
logger -s -t $log_label -p local4.crit "CRITICAL ERROR - XPROD must be set before calling ${FUNCNAME[0]}"
exit 1
fi
if [ "$XPROD" = "43707" ]; then
# For OpenPower Machines
logger -s -t $log_label -p local4.debug "OpenPower, snooze for 30 seconds..."
sleep 30
else
logger -s -t $log_label -p local4.debug "snooze for 1 second..."
sleep 1
fi
}
@@ -328,6 +330,9 @@ for b in $BMCVLAN; do
let idev=idev+1
done
# After network commands are issued, pause to allow the BMC to apply (OpenPower)
snooze
let idev=NUMBMCS-1
for user in $BMCUS; do
if [ "$user" = "" ]; then