Merge "Log IPMI power on/off timeouts"

This commit is contained in:
Jenkins 2014-02-13 21:38:44 +00:00 committed by Gerrit Code Review
commit 8fa04baabe

View File

@ -148,6 +148,8 @@ def _power_on(driver_info):
raise loopingcall.LoopingCallDone()
if retries[0] > CONF.ipmi.retry_timeout:
LOG.error(_('IPMI power on timed out after %(tries)s retries.'),
{'tries': retries[0]})
state[0] = states.ERROR
raise loopingcall.LoopingCallDone()
try:
@ -186,6 +188,8 @@ def _power_off(driver_info):
raise loopingcall.LoopingCallDone()
if retries[0] > CONF.ipmi.retry_timeout:
LOG.error(_('IPMI power off timed out after %(tries)s retries.'),
{'tries': retries[0]})
state[0] = states.ERROR
raise loopingcall.LoopingCallDone()
try: