Exemple #1
0
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)
        self.outputDir = cfg_params.get('USER.outputdir' ,common.work_space.resDir())
        self.res = cfg_params.get(self.name().upper()+'.resource','"type==SLC5_64 || type==SLC6_64"')

        self.pool = cfg_params.get('USER.storage_pool',None)
        return
Exemple #2
0
    def configure(self, cfg_params):
        """
        Configure the scheduler with the config settings from the user
        """

        SchedulerLocal.configure(self, cfg_params)

        self.proxyValid=0
        self.dontCheckProxy=int(cfg_params.get("GRID.dont_check_proxy",0))
        self.space_token = cfg_params.get("USER.space_token",None)
        self.proxyServer= 'myproxy.cern.ch'
        self.group = cfg_params.get("GRID.group", None)
        self.role = cfg_params.get("GRID.role", None)
        self.VO = cfg_params.get('GRID.virtual_organization','cms')

        try:
            tmp =  cfg_params['CMSSW.datasetpath']
            if tmp.lower() == 'none':
                self.datasetPath = None
                self.selectNoInput = 1
            else:
                self.datasetPath = tmp
                self.selectNoInput = 0
        except KeyError:
            msg = "Error: datasetpath not defined "
            raise CrabException(msg)

        self.checkProxy()

        return
Exemple #3
0
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)
        self.outputDir = cfg_params.get('USER.outputdir',
                                        common.work_space.resDir())
        self.res = cfg_params.get(self.name().upper() + '.resource',
                                  '"type==SLC5_64 || type==SLC4_64"')

        self.pool = cfg_params.get('USER.storage_pool', None)
        return
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)
        if "PBS.queue" in cfg_params:
            if len(cfg_params["PBS.queue"]) == 0 or cfg_params["PBS.queue"] == "default":
                common.logger.info(" The default queue of local PBS configuration will be used")
        else:
            common.logger.info(" The default queue of local PBS configuration will be used")

        return
Exemple #5
0
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)
        if "PBS.queue" in cfg_params:
            if len(cfg_params["PBS.queue"]
                   ) == 0 or cfg_params["PBS.queue"] == "default":
                common.logger.info(
                    " The default queue of local PBS configuration will be used"
                )
        else:
            common.logger.info(
                " The default queue of local PBS configuration will be used")

        return
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)

        try:
            tmp =  cfg_params['CMSSW.datasetpath']
            if tmp.lower() == 'none':
                self.datasetPath = None
                self.selectNoInput = 1
            else:
                self.datasetPath = tmp
                self.selectNoInput = 0
        except KeyError:
            msg = "Error: datasetpath not defined "
            raise CrabException(msg)

        self.pool = cfg_params.get('USER.storage_pool',None)
        return
Exemple #7
0
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)

        try:
            tmp = cfg_params['CMSSW.datasetpath']
            if tmp.lower() == 'none':
                self.datasetPath = None
                self.selectNoInput = 1
            else:
                self.datasetPath = tmp
                self.selectNoInput = 0
        except KeyError:
            msg = "Error: datasetpath not defined "
            raise CrabException(msg)

        self.pool = cfg_params.get('USER.storage_pool', None)
        return
Exemple #8
0
    def configure(self, cfg_params):
        self.use_proxy = 0
        SchedulerLocal.configure(self, cfg_params)
        queueConfigName = "%s.queue" % self.name().upper()
        if queueConfigName in cfg_params:
            if len(cfg_params[queueConfigName]
                   ) == 0 or cfg_params[queueConfigName] == "default":
                common.logger.info(
                    " The default queue of local PBS configuration will be used"
                )
        else:
            common.logger.info(
                " The default queue of local PBS configuration will be used")

        self.proxyValid = 0
        self.dontCheckProxy = int(cfg_params.get("GRID.dont_check_proxy", 0))
        self.space_token = cfg_params.get("USER.space_token", None)
        self.proxyServer = 'myproxy.cern.ch'
        self.group = cfg_params.get("GRID.group", None)
        self.role = cfg_params.get("GRID.role", None)
        self.VO = cfg_params.get('GRID.virtual_organization', 'cms')
        self.OSBsize = 0
        try:
            tmp = cfg_params['CMSSW.datasetpath']
            if tmp.lower() == 'none':
                self.datasetPath = None
                self.selectNoInput = 1
            else:
                self.datasetPath = tmp
                self.selectNoInput = 0
        except KeyError:
            msg = "Error: datasetpath not defined "
            raise CrabException(msg)

        if int(cfg_params.get(self.name().upper() + '.use_proxy', 1)):
            common.logger.info("Using a proxy")
            self.use_proxy = 1
            self.dontCheckProxy = 0
        else:
            common.logger.info("Not using a proxy")
            self.dontCheckProxy = 1
            self.use_proxy = 0
            self.dontCheckMyProxy = 1

        if self.use_proxy:
            self.checkProxy()
    def configure(self, cfg_params):
        """
        Configure the scheduler with the config settings from the user
        """

        SchedulerLocal.configure(self, cfg_params)

        self.proxyValid=0
        self.dontCheckProxy=int(cfg_params.get("GRID.dont_check_proxy",0))
        self.space_token = cfg_params.get("USER.space_token",None)
        try:
            self.proxyServer = Downloader("http://cmsdoc.cern.ch/cms/LCG/crab/config/").config("myproxy_server.conf")
            self.proxyServer = self.proxyServer.strip()
            if self.proxyServer is None:
                raise CrabException("myproxy_server.conf retrieved but empty")
        except Exception, e:
            common.logger.info("Problem setting myproxy server endpoint: using myproxy.cern.ch")
            common.logger.debug(e)
            self.proxyServer= 'myproxy.cern.ch'
Exemple #10
0
    def configure(self, cfg_params):
        self.use_proxy = 0
        SchedulerLocal.configure(self, cfg_params)
        queueConfigName = "%s.queue" % self.name().upper()
        if queueConfigName in cfg_params:
            if len(cfg_params[queueConfigName]) == 0 or cfg_params[queueConfigName] == "default":
                common.logger.info(" The default queue of local SLURM configuration will be used")
        else:
            common.logger.info(" The default queue of local SLURM configuration will be used")

        self.proxyValid=0
        self.dontCheckProxy=int(cfg_params.get("GRID.dont_check_proxy",0))
        self.space_token = cfg_params.get("USER.space_token",None)
        self.proxyServer= 'myproxy.cern.ch'
        self.group = cfg_params.get("GRID.group", None)
        self.role = cfg_params.get("GRID.role", None)
        self.VO = cfg_params.get('GRID.virtual_organization','cms')
        self.OSBsize = 0
        try:
            tmp =  cfg_params['CMSSW.datasetpath']
            if tmp.lower() == 'none':
                self.datasetPath = None
                self.selectNoInput = 1
            else:
                self.datasetPath = tmp
                self.selectNoInput = 0
        except KeyError:
            msg = "Error: datasetpath not defined "
            raise CrabException(msg)

        if int(cfg_params.get(self.name().upper() + '.use_proxy',1)):
            common.logger.info("Using a proxy")
            self.use_proxy = 1
            self.dontCheckProxy = 0
        else:
            common.logger.info("Not using a proxy")
            self.dontCheckProxy = 1
            self.use_proxy = 0
            self.dontCheckMyProxy = 1

        if self.use_proxy:
            self.checkProxy()
    def configure(self, cfg_params):
        SchedulerLocal.configure(self, cfg_params)
        queueConfigName = "%s.queue" % self.name().upper()
        if queueConfigName in cfg_params:
            if len(cfg_params[queueConfigNAme]) == 0 or cfg_params[queueConfigName] == "default":
                common.logger.info(" The default queue of local PBS configuration will be used")
        else:
            common.logger.info(" The default queue of local PBS configuration will be used")

        self.proxyValid = 0
        self.dontCheckProxy = int(cfg_params.get("GRID.dont_check_proxy", 0))
        self.space_token = cfg_params.get("USER.space_token", None)
        try:
            self.proxyServer = Downloader("http://cmsdoc.cern.ch/cms/LCG/crab/config/").config("myproxy_server.conf")
            self.proxyServer = self.proxyServer.strip()
            if self.proxyServer is None:
                raise CrabException("myproxy_server.conf retrieved but empty")
        except Exception, e:
            common.logger.info("Problem setting myproxy server endpoint: using myproxy.cern.ch")
            common.logger.debug(e)
            self.proxyServer = "myproxy.cern.ch"
    def configure(self, cfg_params):
        """
        Configure the scheduler with the config settings from the user
        """

        SchedulerLocal.configure(self, cfg_params)

        self.proxyValid = 0
        self.dontCheckProxy = int(cfg_params.get("GRID.dont_check_proxy", 0))
        self.space_token = cfg_params.get("USER.space_token", None)
        try:
            self.proxyServer = Downloader(
                "http://cmsdoc.cern.ch/cms/LCG/crab/config/").config(
                    "myproxy_server.conf")
            self.proxyServer = self.proxyServer.strip()
            if self.proxyServer is None:
                raise CrabException("myproxy_server.conf retrieved but empty")
        except Exception, e:
            common.logger.info(
                "Problem setting myproxy server endpoint: using myproxy.cern.ch"
            )
            common.logger.debug(e)
            self.proxyServer = 'myproxy.cern.ch'