Skip to content

Commit e8816af

Browse files
committed
feat: remove voGroups
1 parent 3565f21 commit e8816af

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ def __init__(self, *args, **kwargs):
8282
self.gridEnv = ""
8383
self.vo = ""
8484
self.group = ""
85-
# self.voGroups contain all the eligible user groups for pilots submitted by this SiteDirector
86-
self.voGroups = []
8785
self.pilotDN = ""
8886
self.pilotGroup = ""
8987
self.platforms = []
@@ -134,21 +132,6 @@ def initialize(self):
134132
self.vo = CSGlobals.getVO()
135133
if not self.vo:
136134
return S_ERROR("Need a VO")
137-
# The SiteDirector is for a particular user group
138-
self.group = self.am_getOption("Group", "")
139-
140-
# Choose the group for which pilots will be submitted. This is a hack until
141-
# we will be able to match pilots to VOs.
142-
if not self.group:
143-
result = Registry.getGroupsForVO(self.vo)
144-
if not result["OK"]:
145-
return result
146-
self.voGroups = []
147-
for group in result["Value"]:
148-
if "NormalUser" in Registry.getPropertiesForGroup(group):
149-
self.voGroups.append(group)
150-
else:
151-
self.voGroups = [self.group]
152135

153136
# Get the clients
154137
self.siteClient = SiteStatus()
@@ -227,8 +210,6 @@ def beginExecution(self):
227210
tags = None
228211

229212
self.log.always("VO:", self.vo)
230-
if self.voGroups:
231-
self.log.always("Group(s):", self.voGroups)
232213
self.log.always("Sites:", siteNames)
233214
self.log.always("CETypes:", ceTypes)
234215
self.log.always("CEs:", ces)
@@ -573,8 +554,6 @@ def _getTQDictForMatching(self):
573554
"""
574555
tqDict = {"Setup": CSGlobals.getSetup(), "CPUTime": 9999999}
575556
tqDict["Community"] = self.vo
576-
if self.voGroups:
577-
tqDict["OwnerGroup"] = self.voGroups
578557

579558
if self.checkPlatform:
580559
platforms = self._getPlatforms()
@@ -669,8 +648,6 @@ def _getCE(self, queue):
669648
if self.queueDict[queue]["Site"] not in self.siteMaskList:
670649
ceDict["JobType"] = "Test"
671650
ceDict["Community"] = self.vo
672-
if self.voGroups:
673-
ceDict["OwnerGroup"] = self.voGroups
674651

675652
if self.checkPlatform:
676653
platform = self.queueDict[queue]["ParametersDict"].get("Platform")

src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,6 @@ Agents
282282
VO =
283283
# VO treated (leave empty for auto-discovery)
284284
Community =
285-
# Group treated (leave empty for auto-discovery)
286-
Group =
287285
# Grid Environment (leave empty for auto-discovery)
288286
GridEnv =
289287
# the DN of the certificate proxy used to submit pilots. If not found here, what is in Operations/Pilot section of the CS will be used

0 commit comments

Comments
 (0)