DIRACGrid / DIRAC

DIRAC Grid
http://diracgrid.org
GNU General Public License v3.0
110 stars 173 forks source link

[8.0] fix SSHCE: clearer error message when output is not found #7655

Closed aldbr closed 2 weeks ago

aldbr commented 2 weeks ago

Currently, when the SSHCE fails to get the output, we get the following error:

2024-06-06T11:44:40,902705Z WorkloadManagement/SiteDirectorDteam/ce.ce.ce ERROR: Invalid output from remote command
Traceback (most recent call last):
  File "/opt/dirac/versions/v9.0.0a29-1717652456/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Resources/Computing/SSHComputingElement.py", line 511, in __executeHostCommand
    index = output.index("============= Start output ===============")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: substring not found

The message is quite misleading.

The SiteDirector is expected to print the S_ERROR message.

BEGINRELEASENOTES *WorkloadManagement FIX: remove exception log when output is not found ENDRELEASENOTES

DIRACGridBot commented 2 weeks ago

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/9420068098

Successful: