Utilities

Utilities for managing DIRAC configuration:

getCEsFromCS getUnusedGridCEs getUnusedGridSEs getSiteUpdates getSEUpdates

DIRAC.ConfigurationSystem.Client.Utilities.getCEsFromCS()

Get all the CEs defined in the CS

DIRAC.ConfigurationSystem.Client.Utilities.getDBParameters(fullname)

Retrieve Database parameters from CS fullname should be of the form <System>/<DBname> defaultHost is the host to return if the option is not found in the CS. Not used as the method will fail if it cannot be found defaultPort is the port to return if the option is not found in the CS defaultUser is the user to return if the option is not found in the CS. Not usePassword is the password to return if the option is not found in the CS. Not used as the method will fail if it cannot be found defaultDB is the db to return if the option is not found in the CS. Not used as the method will fail if it cannot be found defaultQueueSize is the QueueSize to return if the option is not found in the CS

Returns a dictionary with the keys: ‘host’, ‘port’, ‘user’, ‘password’, ‘db’ and ‘queueSize’

DIRAC.ConfigurationSystem.Client.Utilities.getElasticDBParameters(fullname)

Retrieve Database parameters from CS fullname should be of the form <System>/<DBname>

DIRAC.ConfigurationSystem.Client.Utilities.getGridCEs(vo, bdiiInfo=None, ceBlackList=None, hostURL=None, glue2=False)

Get all the CEs available for a given VO and having queues in Production state

DIRAC.ConfigurationSystem.Client.Utilities.getGridSEs(vo, bdiiInfo=None, seBlackList=None)

Get all the SEs available for a given VO

DIRAC.ConfigurationSystem.Client.Utilities.getGridSRMs(vo, bdiiInfo=None, srmBlackList=None, unUsed=False)
DIRAC.ConfigurationSystem.Client.Utilities.getGridVOs()

Get all the VOMS VO names served by this DIRAC service

DIRAC.ConfigurationSystem.Client.Utilities.getSEsFromCS(protocol='srm')

Get all the SEs defined in the CS

DIRAC.ConfigurationSystem.Client.Utilities.getSRMUpdates(vo, bdiiInfo=None)
DIRAC.ConfigurationSystem.Client.Utilities.getSiteUpdates(vo, bdiiInfo=None, log=None)

Get all the necessary updates for the already defined sites and CEs