import du ticket 10 dans bugzilla -> bug 239

This commit is contained in:
Guillaume Raffy 2012-07-03 14:25:44 +00:00
parent 224afd6591
commit 08f168809e
1 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ def blockingPutMachineToSleep( machineName ):
logInfo('putting machine %s to sleep...' % machineName)
iMaxNumAttempts = 5
bSuccess = False
bBUG_00000010_IS_STILL_ALIVE = True
bBUG_239_IS_STILL_ALIVE = True
iAttempt = 0
# note : each sleep order is not actually succeeding (god knows why). Therefore, we need to try again and again.
while not bSuccess:
@ -141,11 +141,11 @@ def blockingPutMachineToSleep( machineName ):
assert(ePowerState == PowerState.ON)
iAttempt += 1
if iAttempt > iMaxNumAttempts:
if bBUG_00000010_IS_STILL_ALIVE:
logWarning('the attempt to put %s to sleep failed to many times (probably because of bug 00000010 (machine is in a weird state : power on but no ssh possible) ?)... giving up. ' % (machineName))
if bBUG_239_IS_STILL_ALIVE:
logWarning('the attempt to put %s to sleep failed too many times (probably because of bug 239 (machine is in a weird state : power on but no ssh possible) ?)... giving up. ' % (machineName))
return False
else:
logWarning('the attempt to put %s to sleep failed to many times... giving up' % (machineName))
logWarning('the attempt to put %s to sleep failed too many times... giving up' % (machineName))
return False
else:
logWarning('the attempt to put %s to sleep failed... trying again' % (machineName))