Resources

Helper for the CS Resources section

DIRAC.ConfigurationSystem.Client.Helpers.Resources.findGenericCloudCredentials(vo=False, group=False)

Get the cloud credentials to use for a specific VO and/or group.

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 by numeric components in the platform. 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 (str) – provider of what(Id, Proxy or etc.) need to look, None, “all” to get list of instance of what this providers

  • providerName (str) – provider name, None, “all” to get list of providers names

  • option (str) – option name that need to get, None, “all” to get all options in a section

  • section (str) – section path in root section of provider, “all” to get options in all sections

Returns:

S_OK()/S_ERROR()

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getPilotBootstrapParameters(vo='', runningPod='')

Get all of the settings required to bootstrap a cloud instance.

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, tags=None)

Get CE/queue options according to the specified selection

Parameters:
  • siteList (str list) – sites to be selected

  • ceList (str list) – CEs to be selected

  • ceTypeList (str list) – CE types to be selected

  • community (str) – selected VO

  • tags (str list) – tags required for selection

Returns:

S_OK/S_ERROR with Value - dictionary of selected Site/CE/Queue parameters

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.getVMTypeConfig(site, ce='', vmtype='')

Get the VM image type parameters of the specified queue

DIRAC.ConfigurationSystem.Client.Helpers.Resources.getVMTypes(siteList=None, ceList=None, vmTypeList=None, vo=None)

Get CE/vmType options filtered by the provided parameters.