Skip to content

Commit

Permalink
more removals
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Nov 10, 2020
1 parent b1fce13 commit ed4c633
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 735 deletions.
26 changes: 1 addition & 25 deletions FrameworkSystem/Agent/MyProxyRenewalAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

__RCSID__ = "$Id$"

from DIRAC import gLogger, S_OK
Expand Down Expand Up @@ -39,31 +40,6 @@ def __renewProxyForCredentials(self, userDN, userGroup):
else:
gLogger.info("Renewed proxy for %s@%s" % (userDN, userGroup))

def __treatRenewalCallback(self, oTJ, exceptionList):
gLogger.exception(lException=exceptionList)
requiredLifeTime = self.am_getOption("MinimumLifeTime", 3600)
renewedLifeTime = self.am_getOption("RenewedLifeTime", 54000)
self.proxyDB = ProxyDB(useMyProxy=True)

gLogger.info("Minimum Life time : %s" % requiredLifeTime)
gLogger.info("Life time on renew : %s" % renewedLifeTime)
gLogger.info("MyProxy server : %s" % self.proxyDB.getMyProxyServer())
gLogger.info("MyProxy max proxy time : %s" % self.proxyDB.getMyProxyMaxLifeTime())

self.__threadPool = ThreadPool(1, 10)
return S_OK()

def __renewProxyForCredentials(self, userDN, userGroup):
lifeTime = self.am_getOption("RenewedLifeTime", 54000)
gLogger.info("Renewing for %s@%s %s secs" % (userDN, userGroup, lifeTime))
retVal = self.proxyDB.renewFromMyProxy(userDN,
userGroup,
lifeTime=lifeTime)
if not retVal['OK']:
gLogger.error("Failed to renew proxy", "for %s@%s : %s" % (userDN, userGroup, retVal['Message']))
else:
gLogger.info("Renewed proxy for %s@%s" % (userDN, userGroup))

def __treatRenewalCallback(self, oTJ, exceptionList):
gLogger.exception(lException=exceptionList)

Expand Down
52 changes: 0 additions & 52 deletions FrameworkSystem/Agent/SystemLoggingDBCleaner.py

This file was deleted.

140 changes: 0 additions & 140 deletions FrameworkSystem/Agent/TopErrorMessagesReporter.py

This file was deleted.

80 changes: 0 additions & 80 deletions FrameworkSystem/Service/SystemLoggingHandler.py

This file was deleted.

Loading

0 comments on commit ed4c633

Please sign in to comment.