Resources

Helper for the CS Resources section

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getBackendConfig(backendID)

Return a backend configuration for a given backend identifier

Params backendID:
 string representing a backend identifier. Ex: stdout, file, f02
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getCESiteMapping(ceName='')

Returns a mapping of CE -> site It assumes that the ce names are unique (as they should be)

Parameters:ceName (str) – optional CE name. If not present, the whole mapping will be returned
Returns:S_OK/S_ERROR structure
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getCatalogPath(catalogName)

Return the configuration path of the description for a a given catalog

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getCompatiblePlatforms(originalPlatforms)

Get a list of platforms compatible with the given list

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getDIRACPlatform(OSList)

Get standard DIRAC platform(s) compatible with the argument.

NB: The returned value is a list! ordered, in reverse, using distutils.version.LooseVersion In practice the “highest” version (which should be the most “desirable” one is returned first)

Parameters:OSList (list) – list of platforms defined by resource providers
Returns:a list of DIRAC platforms that can be specified in job descriptions
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getDIRACPlatforms()

just returns list of platforms defined in the CS

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getDIRACSiteName(gocSiteName)

Get DIRAC site name, given the GOC DB site name, as it stored in the CS

Params str gocSiteName:
 GOC DB site name (e.g. ‘CERN-PROD’)
Returns:S_OK/S_ERROR structure
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getFTS3ServerDict()
Returns:dict of key = server name and value = server url
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getFTS3Servers(hostOnly=False)

get list of FTS3 servers that are in CS

Parameters:hostOnly (bool) – flag for stripping down the protocol and ports
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getFilterConfig(filterID)

Return a filter configuration for a given filter identifier.

Params filterID:
 string representing a filter identifier.
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getGOCFTSName(diracFTSName)

Get GOC DB FTS server URL, given the DIRAC FTS server name, as it stored in the CS

Parameters:diracFTSName (str) – DIRAC FTS server name (e.g. ‘CERN-FTS3’)
Returns:S_OK/S_ERROR structure
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getGOCSiteName(diracSiteName)

Get GOC DB site name, given the DIRAC site name, as it is stored in the CS

Parameters:diracSiteName (str) – DIRAC site name (e.g. ‘LCG.CERN.ch’)
Returns:S_OK/S_ERROR structure
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getGOCSites(diracSites=None)
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getInfoAboutProviders(of=None, providerName=None, option='', section='')

Get the information about providers

Parameters:
  • of (basestring) – provider of what(Id, Proxy or etc.) need to look, None, “all” to get list of instance of what this providers
  • providerName (basestring) – provider name, None, “all” to get list of providers names
  • option (basestring) – option name that need to get, None, “all” to get all options in a section
  • section (basestring) – section path in root section of provider, “all” to get options in all sections
Returns:

S_OK()/S_ERROR()

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getQueue(site, ce, queue)

Get parameters of the specified queue

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getQueues(siteList=None, ceList=None, ceTypeList=None, community=None, mode=None)

Get CE/queue options according to the specified selection

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getSiteCEMapping()
Returns:dict of site: list of CEs
DIRAC.ConfigurationSystem.Client.Helpers.Resources.getSiteGrid(site)

Return Grid component from Site Name

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getSitePath(site)

Return path to the Site section on CS

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getSiteTier(site)

Return Tier level of the given Site

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getSites()

Get the list of all the sites defined in the CS

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getStorageElements(vo=None)

Get configuration of storage elements

Parameters:vo (str) – select SE’s for the given VO
Returns:S_OK/S_ERROR, Value SE information dictionary