-
Notifications
You must be signed in to change notification settings - Fork 95
job-submit: duplicate logging of command / output in debug mode #6318
Copy link
Copy link
Open
Labels
could be betterNot exactly a bug, but not ideal.Not exactly a bug, but not ideal.
Milestone
Description
- If a job-submit command fails, we log it at the ERROR level.
- We also log all commands at the DEBUG level.
This can make debugging job-submission issues rather difficult as these commands and their output gets quite long.
Example log showing an SSH failure:
DEBUG - [jobs-submit cmd] cat .../01/job | ssh myhost bash --login -c ''"'"'exec "$0" "$@"'"'"'' cylc jobs-submit --debug ...
[jobs-submit ret_code] 255
[jobs-submit err]
Permission denied (publickey,password,keyboard-interactive,hostbased).
WARNING - platform: myplatform - Could not connect to myhost.
* myhost has been added to the list of unreachable hosts
* jobs-submit will retry if another host is available.
ERROR - [jobs-submit cmd] cat .../01/job | ssh myhost2 bash --login -c ''"'"'exec "$0" "$@"'"'"'' cylc jobs-submit --debug ...
[jobs-submit ret_code] 255
[jobs-submit err]
Permission denied (publickey,password,keyboard-interactive,hostbased).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
could be betterNot exactly a bug, but not ideal.Not exactly a bug, but not ideal.