def export_getPilotLoggingInfo(self, pilotReference): """ Get the pilot logging info for the Grid job reference """ result = pilotDB.getPilotInfo(pilotReference) if not result['OK'] or not result['Value']: return S_ERROR('Failed to determine owner for pilot ' + pilotReference) pilotDict = result['Value'][pilotReference] owner = pilotDict['OwnerDN'] group = pilotDict['OwnerGroup'] group = getGroupOption(group, 'VOMSRole', group) ret = gProxyManager.getPilotProxyFromVOMSGroup(owner, group) if not ret['OK']: gLogger.error(ret['Message']) gLogger.error('Could not get proxy:', 'User "%s", Group "%s"' % (owner, group)) return S_ERROR("Failed to get the pilot's owner proxy") proxy = ret['Value'] gridType = pilotDict['GridType'] return getPilotLoggingInfo(proxy, gridType, pilotReference)
def export_getPilotLoggingInfo(self,pilotReference): """ Get the pilot logging info for the Grid job reference """ result = pilotDB.getPilotInfo(pilotReference) if not result['OK'] or not result[ 'Value' ]: return S_ERROR('Failed to determine owner for pilot ' + pilotReference) pilotDict = result['Value'][pilotReference] owner = pilotDict['OwnerDN'] group = pilotDict['OwnerGroup'] gridType = pilotDict['GridType'] return getPilotLoggingInfo( gridType, pilotReference, proxyUserDN = owner, proxyUserGroup = group )
def export_getPilotLoggingInfo(cls, pilotReference): """ Get the pilot logging info for the Grid job reference """ result = pilotDB.getPilotInfo(pilotReference) if not result['OK'] or not result['Value']: return S_ERROR('Failed to determine owner for pilot ' + pilotReference) pilotDict = result['Value'][pilotReference] owner = pilotDict['OwnerDN'] group = pilotDict['OwnerGroup'] gridType = pilotDict['GridType'] pilotStamp = pilotDict['PilotStamp'] # Add the pilotStamp to the pilot Reference, some CEs may need it to retrieve the logging info pilotReference = pilotReference + ':::' + pilotStamp return getPilotLoggingInfo(gridType, pilotReference, # pylint: disable=unexpected-keyword-arg proxyUserDN=owner, proxyUserGroup=group)
def export_getPilotLoggingInfo(cls, pilotReference): """ Get the pilot logging info for the Grid job reference """ result = PilotAgentsDB().getPilotInfo(pilotReference) if not result['OK'] or not result['Value']: return S_ERROR('Failed to determine owner for pilot ' + pilotReference) pilotDict = result['Value'][pilotReference] owner = pilotDict['OwnerDN'] group = pilotDict['OwnerGroup'] gridType = pilotDict['GridType'] return getPilotLoggingInfo( gridType, pilotReference, # pylint: disable=unexpected-keyword-arg proxyUserDN=owner, proxyUserGroup=group)
def export_getPilotLoggingInfo(self,pilotReference): """ Get the pilot logging info for the Grid job reference """ result = pilotDB.getPilotInfo(pilotReference) if not result['OK'] or not result[ 'Value' ]: return S_ERROR('Failed to determine owner for pilot ' + pilotReference) pilotDict = result['Value'][pilotReference] owner = pilotDict['OwnerDN'] group = pilotDict['OwnerGroup'] group = getGroupOption(group,'VOMSRole',group) ret = gProxyManager.getPilotProxyFromVOMSGroup( owner, group ) if not ret['OK']: gLogger.error( ret['Message'] ) gLogger.error( 'Could not get proxy:', 'User "%s", Group "%s"' % ( owner, group ) ) return S_ERROR("Failed to get the pilot's owner proxy") proxy = ret['Value'] gridType = pilotDict['GridType'] return getPilotLoggingInfo( proxy, gridType, pilotReference )