Ejemplo n.º 1
0
        try:
            seEl = SElement(self.storage_name, self.storage_proto,
                            self.storage_port)
        except Exception, ex:
            common.logger.debug(str(ex))
            msg = "ERROR: Unable to create SE source interface \n"
            raise CrabException(msg)
        try:
            loc = SElement("localhost", "local")
        except Exception, ex:
            common.logger.debug(str(ex))
            msg = "ERROR: Unable to create destination interface \n"
            raise CrabException(msg)

        ## coupling se interfaces
        sbi = SBinterface(seEl, loc, logger=common.logger.logger)

        ## get the list of jobs to get logging.info skimmed by failed status
        logginable = self.skimDeadList()

        if self.storage_proto in ['globus']:
            for id in self.nj_list:
                if id not in self.all_jobs:
                    common.logger.info(
                        'Warning: job # ' + str(id) +
                        ' does not exist! Not possible to ask for postMortem ')
                elif id not in logginable:
                    common.logger.info(
                        'Warning: job # ' + str(id) +
                        ' not killed or aborted! Will get loggingInfo manually '
                    )
Ejemplo n.º 2
0
            raise CrabException(msg)

        try:
            loc = SElement("localhost", "local")
        except Exception, ex:
            common.logger.debug(str(ex))
            msg = "ERROR : Unable to create SE source interface \n"
            msg += "Project " + self.taskuuid + " not Submitted \n"
            raise CrabException(msg)

        ### it should not be there... To move into SE API. DS

        # create remote dir for gsiftp
        if self.storage_proto in ['gridftp', 'rfio', 'uberftp']:
            try:
                action = SBinterface(seEl, logger=common.logger.logger)
                action.createDir(self.remotedir)
            except AlreadyExistsException, ex:
                msg = "Project %s already exist on the Storage Element \n" % self.taskuuid
                msg += '\t%s' % str(ex)
                common.logger.debug(msg)
            except OperationException, ex:
                common.logger.debug(str(ex.detail))
                msg = "ERROR: Unable to create project destination on the Storage Element %s\n" % str(
                    ex)
                msg += "Project " + self.taskuuid + " not Submitted \n"
                raise CrabException(msg)
            except AuthorizationException, ex:
                common.logger.debug(str(ex.detail))
                msg = "ERROR: Unable to create project destination on the Storage Element: %s\n" % str(
                    ex)