import du ticket 10 dans bugzilla -> bug 239
This commit is contained in:
parent
224afd6591
commit
08f168809e
|
@ -119,7 +119,7 @@ def blockingPutMachineToSleep( machineName ):
|
||||||
logInfo('putting machine %s to sleep...' % machineName)
|
logInfo('putting machine %s to sleep...' % machineName)
|
||||||
iMaxNumAttempts = 5
|
iMaxNumAttempts = 5
|
||||||
bSuccess = False
|
bSuccess = False
|
||||||
bBUG_00000010_IS_STILL_ALIVE = True
|
bBUG_239_IS_STILL_ALIVE = True
|
||||||
iAttempt = 0
|
iAttempt = 0
|
||||||
# note : each sleep order is not actually succeeding (god knows why). Therefore, we need to try again and again.
|
# note : each sleep order is not actually succeeding (god knows why). Therefore, we need to try again and again.
|
||||||
while not bSuccess:
|
while not bSuccess:
|
||||||
|
@ -141,11 +141,11 @@ def blockingPutMachineToSleep( machineName ):
|
||||||
assert(ePowerState == PowerState.ON)
|
assert(ePowerState == PowerState.ON)
|
||||||
iAttempt += 1
|
iAttempt += 1
|
||||||
if iAttempt > iMaxNumAttempts:
|
if iAttempt > iMaxNumAttempts:
|
||||||
if bBUG_00000010_IS_STILL_ALIVE:
|
if bBUG_239_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))
|
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
|
return False
|
||||||
else:
|
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
|
return False
|
||||||
else:
|
else:
|
||||||
logWarning('the attempt to put %s to sleep failed... trying again' % (machineName))
|
logWarning('the attempt to put %s to sleep failed... trying again' % (machineName))
|
||||||
|
|
Loading…
Reference in New Issue