From 08f168809e724b97cdc4bbe2c3a6740314335bdf Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 3 Jul 2012 14:25:44 +0000 Subject: [PATCH] import du ticket 10 dans bugzilla -> bug 239 --- ClusterController/Util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ClusterController/Util.py b/ClusterController/Util.py index 7ae091f..7907edd 100644 --- a/ClusterController/Util.py +++ b/ClusterController/Util.py @@ -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))