Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sweep:integration] fix: AREX delegation not found #7234

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/DIRAC/Resources/Computing/AREXComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def _getDelegationIDs(self):
# Submit the POST request to get the delegation
result = self._request("get", query)
if not result["OK"]:
self.log.error("Issue while interacting with the delegations.", result["Message"])
return S_ERROR("Issue while interacting with the delegations")
self.log.warn("Issue while interacting with the delegations.", result["Message"])
return S_OK([])
response = result["Value"]

# If there is no delegation, response.json is expected to return an exception
Expand Down Expand Up @@ -320,7 +320,7 @@ def _getProxyFromDelegationID(self, delegationID):
# Submit the POST request to get the delegation
result = self._request("post", query, params=params)
if not result["OK"]:
self.log.error("Issue while interacting with the delegations.", result["Message"])
self.log.error("Issue while interacting with delegation ", f"{delegationID}: {result['Message']}")
return S_ERROR("Issue while interacting with the delegations")
response = result["Value"]

Expand Down Expand Up @@ -414,7 +414,7 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=

self.log.verbose(f"Executable file path: {executableFile}")

# Get a delegation and use the same delegation for all the jobs
# Get existing delegations
result = self._getDelegationIDs()
if not result["OK"]:
self.log.error("Could not get delegation IDs.", result["Message"])
Expand All @@ -428,7 +428,7 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=
# Get the proxy attached to the delegationID
result = self._getProxyFromDelegationID(delegationID)
if not result["OK"]:
return result
continue
proxy = result["Value"]

if proxy.getDIRACGroup() != proxyGroup:
Expand Down
Loading