def __updateCEs(self): """Update the Site/CE/queue settings in the CS if they were changed in the BDII""" bdiiChangeSet = set() bannedCEs = self.am_getOption("BannedCEs", []) for vo in self.voName: result = self.__getGlue2CEInfo(vo) if not result["OK"]: continue ceBdiiDict = result["Value"] for _siteName, ceDict in ceBdiiDict.items(): for bannedCE in bannedCEs: ceDict["CEs"].pop(bannedCE, None) result = getSiteUpdates(vo, bdiiInfo=ceBdiiDict, log=self.log, onecore=self.injectSingleCoreQueues) 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
def updateSites(): global vo, dry, ceBdiiDict, glue2 result = getSiteUpdates(vo, bdiiInfo=ceBdiiDict, glue2=glue2) if not result['OK']: gLogger.error('Failed to get site updates', result['Message']) DIRACExit(-1) changeSet = result['Value'] updateCS(changeSet)
def updateSites(): global vo, dry, ceBdiiDict result = getSiteUpdates( vo, bdiiInfo = ceBdiiDict ) if not result['OK']: gLogger.error( 'Failed to get site updates', result['Message'] ) DIRACExit( -1 ) changeSet = result['Value'] updateCS( changeSet )
def updateSites(): global vo, dry, ceBdiiDict, onecore result = getSiteUpdates(vo, bdiiInfo=ceBdiiDict, onecore=onecore) if not result["OK"]: gLogger.error("Failed to get site updates", result["Message"]) DIRACExit(-1) changeSet = result["Value"] updateCS(changeSet)
def updateSites(): global vo, dry, ceBdiiDict result = getSiteUpdates(vo, bdiiInfo=ceBdiiDict) if not result["OK"]: gLogger.error("Failed to get site updates", result["Message"]) DIRACExit(-1) changeSet = result["Value"] updateCS(changeSet)
def __updateCEs(self): """ Update the Site/CE/queue settings in the CS if they were changed in the BDII """ bdiiChangeSet = set() for vo in self.voName: result = self.__getBdiiCEInfo(vo) if not result['OK']: continue ceBdiiDict = result['Value'] result = getSiteUpdates(vo, bdiiInfo=ceBdiiDict, log=self.log) 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
def __updateCEs( self ): """ Update the Site/CE/queue settings in the CS if they were changed in the BDII """ bdiiChangeSet = set() for vo in self.voName: result = self.__getBdiiCEInfo( vo ) if not result['OK']: continue ceBdiiDict = result['Value'] result = getSiteUpdates( vo, bdiiInfo = ceBdiiDict, log = self.log ) 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