def __init__(self, url = None): if url: raise Exception('Custom url currently not supportet, please contact the grid-control developers!') self._url = url or 'http://cms-cric.cern.ch/api' self._gjrc = GridJSONRestClient(get_cms_cert(), self._url, 'VOMS proxy needed to query siteDB!') self._url_people = 'http://cms-cric.cern.ch/api/accounts/user/query/?json&preset=people' self._gjrc_people = GridJSONRestClient(get_cms_cert(), self._url_people, 'VOMS proxy needed to query CRIC!') self._url_names = 'http://cms-cric.cern.ch/api/cms/site/query/?json&preset=site-names' self._gjrc_names = GridJSONRestClient(get_cms_cert(), self._url_names, 'VOMS proxy needed to query CRIC!') self._url_recources = 'http://wlcg-cric.cern.ch/api/core/service/query/?json&groupby=rcsite' self._gjrc_recources = GridJSONRestClient(get_cms_cert(), self._url_recources, 'VOMS proxy needed to query siteDB!')
def __init__(self, url): self._reader_url = '%s/%s' % (url, 'DBSReader') self._writer_url = '%s/%s' % (url, 'DBSWriter') self._migrate_url = '%s/%s' % (url, 'DBSMigrate') self._gjrc = GridJSONRestClient( cert_errror_msg='VOMS proxy needed to query DBS3!', cert_errror_cls=UserError)
def __init__(self, config, datasetExpr, datasetNick = None): CMSBaseProvider.__init__(self, config, datasetExpr, datasetNick) if self._datasetInstance.startswith('http'): self._url = self._datasetInstance else: self._url = 'https://cmsweb.cern.ch/dbs/%s/DBSReader' % self._datasetInstance self._usePhedex = (self._url == 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader') # Use DBS locality for private samples self._gjrc = GridJSONRestClient(self._url, 'VOMS proxy needed to query DBS3!', UserError)
def __init__(self, config, datasource_name, dataset_expr, dataset_nick=None, dataset_proc=None): CMSBaseProvider.__init__(self, config, datasource_name, dataset_expr, dataset_nick, dataset_proc) if self._dataset_instance.startswith('http'): self._url = self._dataset_instance else: self._url = 'https://cmsweb.cern.ch/dbs/%s/DBSReader' % self._dataset_instance # Use DBS locality for private samples self._use_phedex = (self._url == 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader') self._gjrc = GridJSONRestClient(get_cms_cert(config), self._url, 'VOMS proxy needed to query DBS3!', UserError)
def __init__(self, config, datasetExpr, datasetNick = None, datasetID = 0): CMSBaseProvider.__init__(self, config, datasetExpr, datasetNick, datasetID) url_global_inst = 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader' if self._url == '': self._url = url_global_inst elif '/' not in self._url: # assume prod instance self._url = 'https://cmsweb.cern.ch/dbs/prod/%s/DBSReader' % self._url elif not self._url.startswith('http'): # eg. prod/phys03 self._url = 'https://cmsweb.cern.ch/dbs/%s/DBSReader' % self._url self._usePhedex = (self._url == url_global_inst) # Use DBS locality for private samples self._gjrc = GridJSONRestClient(self._url, 'VOMS proxy needed to query DBS3!', UserError)
def __init__(self, config, datasetExpr, datasetNick=None, datasetID=0): CMSProvider.__init__(self, config, datasetExpr, datasetNick, datasetID) self._instance = '' if '/' not in self._url: self._instance = 'prod/%s' % self._url self._url = '' elif not self._url.startswith('http'): self._instance = self._url self._url = '' self._url = self._url or 'https://cmsweb.cern.ch/das/cache' self._gjrc = GridJSONRestClient(self._url, 'VOMS proxy needed to query DAS!', UserError)
def __init__(self, url=None): self._url = url or 'https://cmsweb.cern.ch/sitedb/data/prod' self._gjrc = GridJSONRestClient(get_cms_cert(), self._url, 'VOMS proxy needed to query siteDB!')