def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.numRetries = 5 self.retryPause = 300 # permissions for target directory self.permissions = '775'
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self._mkdirScript = os.path.join(VandyImpl.BASEDIR, 'vandyMkdir.sh') self._cpScript = os.path.join(VandyImpl.BASEDIR, 'vandyCp.sh') self._rmScript = os.path.join(VandyImpl.BASEDIR, 'vandyRm.sh') self._downloadScript = os.path.join(VandyImpl.BASEDIR, 'vandyDownload.sh')
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) # If we want to execute commands in clean shell, we can`t separate them with ';'. # Next commands after separation are executed without env -i and this leads us with # mixed environment with COMP and system python. # GFAL2 is not build under COMP environment and it had failures with mixed environment. self.setups = "env -i X509_USER_PROXY=$X509_USER_PROXY JOBSTARTDIR=$JOBSTARTDIR bash -c '%s'" self.removeCommand = self.setups % '. $JOBSTARTDIR/startup_environment.sh; date; gfal-rm -t 600 %s ' self.copyCommand = self.setups % '. $JOBSTARTDIR/startup_environment.sh; date; gfal-copy -t 2400 -T 2400 -p %(checksum)s %(options)s %(source)s %(destination)s'
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) # If we want to execute commands in clean shell, we can`t separate them with ';'. # Next commands after separation are executed without env -i and this leads us with # mixed environment with COMP and system python. # GFAL2 is not build under COMP environment and it had failures with mixed environment. self.setups = "env -i X509_USER_PROXY=$X509_USER_PROXY JOBSTARTDIR=$JOBSTARTDIR bash -c '%s'" self.removeCommand = self.setups % '. $JOBSTARTDIR/startup_environment.sh; printenv; date; gfal-rm -vvv -t 600 %s ' self.copyCommand = self.setups % '. $JOBSTARTDIR/startup_environment.sh; printenv; date; gfal-copy -vvv -t 2400 -T 2400 -p %(checksum)s %(options)s %(source)s %(destination)s'
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self._mkdirScript = os.path.join(VandyImpl.BASEDIR, 'vandyMkdir.sh') self._cpScript = os.path.join(VandyImpl.BASEDIR, 'vandyCp.sh') self._rmScript = os.path.join(VandyImpl.BASEDIR, 'vandyRm.sh') self._downloadScript = os.path.join(VandyImpl.BASEDIR, 'vandyDownload.sh')
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.setups = "" setupScripts = { "OSG_GRID": "/setup.sh", "GLITE_WMS_LOCATION": "/etc/profile.d/glite-wmsui.sh", "GLITE_LOCATION": "/../etc/profile.d/grid-env.sh", "GRID_ENV_LOCATION": "/grid-env.sh", } for env, script in setupScripts.iteritems(): if os.environ.get(env): fullScript = os.path.normpath(os.path.join(os.environ[env], script)) if os.path.isfile(fullScript): self.setups += "source %s; " % fullScript
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.setups = '' setupScripts = { 'OSG_GRID' : '/setup.sh', 'GLITE_WMS_LOCATION' : '/etc/profile.d/glite-wmsui.sh', 'GLITE_LOCATION' : '/../etc/profile.d/grid-env.sh', 'GRID_ENV_LOCATION' : '/grid-env.sh', } for env, script in setupScripts.iteritems(): if os.environ.get(env): fullScript = os.path.normpath(os.path.join(os.environ[env], script)) if os.path.isfile(fullScript): self.setups += 'source %s; ' % fullScript
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.setups = '' setupScripts = { 'OSG_GRID': '/setup.sh', 'GLITE_WMS_LOCATION': '/etc/profile.d/glite-wmsui.sh', 'GLITE_LOCATION': '/../etc/profile.d/grid-env.sh', 'GRID_ENV_LOCATION': '/grid-env.sh', } for env, script in setupScripts.iteritems(): if os.environ.get(env): fullScript = os.path.normpath( os.path.join(os.environ[env], script)) if os.path.isfile(fullScript): self.setups += 'source %s; ' % fullScript
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.setups = '' self.timeoutOptions = '--srm-timeout 600 --sendreceive-timeout 600 --connect-timeout 300' setupScripts = { 'OSG_GRID': '/setup.sh', 'GLITE_WMS_LOCATION': '/etc/profile.d/glite-wmsui.sh', 'GLITE_LOCATION': '/../etc/profile.d/grid-env.sh', 'GRID_ENV_LOCATION': '/grid-env.sh', } for env, script in setupScripts.iteritems(): if os.environ.get(env): fullScript = os.path.normpath(os.path.join(os.environ[env], script)) if os.path.isfile(fullScript): self.setups += 'source %s; ' % fullScript self.setups += 'date "+%Y-%m-%dT%H:%M:%S"; '
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.setups = '' self.timeoutOptions = '--srm-timeout 600 --sendreceive-timeout 600 --connect-timeout 300' setupScripts = { 'OSG_GRID': '/setup.sh', 'GLITE_WMS_LOCATION': '/etc/profile.d/glite-wmsui.sh', 'GLITE_LOCATION': '/../etc/profile.d/grid-env.sh', 'GRID_ENV_LOCATION': '/grid-env.sh', } for env, script in viewitems(setupScripts): if os.environ.get(env): fullScript = os.path.normpath( os.path.join(os.environ[env], script)) if os.path.isfile(fullScript): self.setups += 'source %s; ' % fullScript self.setups += 'date "+%Y-%m-%dT%H:%M:%S"; '
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) # Create and hold onto a srm implementation in case we need it self.srmImpl = LCGImpl(stagein)
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.numRetries = 5 self.retryPause = 300
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein)
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein)
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.directoryErrorCodes = (1,)
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.numRetries = 5 self.retryPause = 300
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.directoryErrorCodes = (1, )
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.removeCommand = "env -i X509_USER_PROXY=$X509_USER_PROXY gfal-rm -vvv %s" self.copyCommand = "env -i X509_USER_PROXY=$X509_USER_PROXY gfal-copy -t 2400 -T 2400 -p -vvv"
def __init__(self, stagein=False): StageOutImpl.__init__(self, stagein) self.removeCommand = "env -i X509_USER_PROXY=$X509_USER_PROXY gfal-rm -vvv %s" self.copyCommand = "env -i X509_USER_PROXY=$X509_USER_PROXY gfal-copy -t 2400 -T 2400 -p -vvv"