Exemplo n.º 1
0
    def __init__(self, stagein=False):
        StageOutImpl.__init__(self, stagein)
        self.numRetries = 5
        self.retryPause = 300

        # permissions for target directory
        self.permissions = '775'
Exemplo n.º 2
0
    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')
Exemplo n.º 3
0
 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'
Exemplo n.º 4
0
 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'
Exemplo n.º 5
0
    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')
Exemplo n.º 6
0
    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
Exemplo n.º 7
0
    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
Exemplo n.º 8
0
    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
Exemplo n.º 9
0
    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"; '
Exemplo n.º 10
0
    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"; '
Exemplo n.º 11
0
    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)
Exemplo n.º 12
0
 def __init__(self, stagein=False):
     StageOutImpl.__init__(self, stagein)
     self.numRetries = 5
     self.retryPause = 300
Exemplo n.º 13
0
 def __init__(self, stagein=False):
     StageOutImpl.__init__(self, stagein)
Exemplo n.º 14
0
 def __init__(self, stagein=False):
     StageOutImpl.__init__(self, stagein)
Exemplo n.º 15
0
 def __init__(self, stagein=False):
     StageOutImpl.__init__(self, stagein)
     self.directoryErrorCodes = (1,)
Exemplo n.º 16
0
 def __init__(self, stagein=False):
     StageOutImpl.__init__(self, stagein)
     self.numRetries = 5
     self.retryPause = 300
Exemplo n.º 17
0
 def __init__(self, stagein=False):
     StageOutImpl.__init__(self, stagein)
     self.directoryErrorCodes = (1, )
Exemplo n.º 18
0
 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"
Exemplo n.º 19
0
 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"