Esempio n. 1
0
def updateSEs():

  global vo, dry

  result = getSRMUpdates(vo)
  if not result['OK']:
    gLogger.error('Failed to get SRM updates', result['Message'])
    DIRACExit(-1)
  changeSet = result['Value']

  updateCS(changeSet)
Esempio n. 2
0
def updateSEs():
  
  global vo, dry
  
  result = getSRMUpdates( vo )
  if not result['OK']:
    gLogger.error( 'Failed to get SRM updates', result['Message'] )
    DIRACExit( -1 )
  changeSet = result['Value']  
  
  updateCS( changeSet )
def updateSEs():

    global vo, dry

    result = getSRMUpdates(vo)
    if not result["OK"]:
        gLogger.error("Failed to get SRM updates", result["Message"])
        DIRACExit(-1)
    changeSet = result["Value"]

    updateCS(changeSet)
Esempio n. 4
0
    def __updateSEs(self):
        """ Update the Storage Element settings in the CS if they were changed in the BDII
    """

        bdiiChangeSet = set()

        for vo in self.voName:
            result = self.__getBdiiSEInfo(vo)
            if not result['OK']:
                continue
            seBdiiDict = result['Value']
            result = getSRMUpdates(vo, bdiiInfo=seBdiiDict)
            if not result['OK']:
                continue
            bdiiChangeSet = bdiiChangeSet.union(result['Value'])

        # We have collected all the changes, consolidate VO settings
        result = self.__updateCS(bdiiChangeSet)
        return result
Esempio n. 5
0
  def __updateSEs( self ):
    """ Update the Storage Element settings in the CS if they were changed in the BDII
    """
    
    bdiiChangeSet = set()

    for vo in self.voName:
      result = self.__getBdiiSEInfo( vo )
      if not result['OK']:
        continue
      seBdiiDict = result['Value']
      result = getSRMUpdates( vo, bdiiInfo = seBdiiDict )
      if not result['OK']:
        continue
      bdiiChangeSet = bdiiChangeSet.union( result['Value'] )
      
    # We have collected all the changes, consolidate VO settings
    result = self.__updateCS( bdiiChangeSet )
    return result