Skip to content

Commit

Permalink
Restore glideFactoryCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoCoimbra committed Dec 20, 2023
1 parent 0b874e2 commit 443e1a9
Show file tree
Hide file tree
Showing 6 changed files with 477 additions and 360 deletions.
20 changes: 3 additions & 17 deletions factory/glideFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

from glideinwms.factory import (
glideFactoryConfig,
glideFactoryCredentials,
glideFactoryDowntimeLib,
glideFactoryEntryGroup,
glideFactoryInterface,
Expand Down Expand Up @@ -645,14 +646,14 @@ def _set_rlimit(soft_l=None, hard_l=None):
# available when the Entries startup
classads = {}
try:
classads = get_globals_classads()
classads = glideFactoryCredentials.get_globals_classads()
except Exception:
logSupport.log.error("Error occurred retrieving globals classad -- is Condor running?")

for classad_key in classads:
classad = classads[classad_key]
try:
glideFactoryLib.process_global(classad, glideinDescript, frontendDescript)
glideFactoryCredentials.process_global(classad, glideinDescript, frontendDescript)
except:
logSupport.log.exception("Error occurred processing the globals classads: ")

Expand Down Expand Up @@ -801,21 +802,6 @@ def increase_process_limit(new_limit=10000):
logSupport.log.info("RLIMIT_NPROC already %d, not changing to %d" % (soft, new_limit))


def get_globals_classads(factory_collector=glideFactoryInterface.DEFAULT_VAL):
if factory_collector == glideFactoryInterface.DEFAULT_VAL:
factory_collector = glideFactoryInterface.factoryConfig.factory_collector

status_constraint = '(GlideinMyType=?="glideclientglobal")'

status = condorMonitor.CondorStatus("any", pool_name=factory_collector)
status.require_integrity(True) # important, this dictates what gets submitted

status.load(status_constraint)

data = status.fetchStored()
return data


############################################################
def main(startup_dir):
"""
Expand Down
Loading

0 comments on commit 443e1a9

Please sign in to comment.