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

job-submit: duplicate logging of command / output in debug mode #6318

Open
oliver-sanders opened this issue Aug 22, 2024 · 0 comments
Open
Labels
could be better Not exactly a bug, but not ideal.
Milestone

Comments

@oliver-sanders
Copy link
Member

  • 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).
@oliver-sanders oliver-sanders added the could be better Not exactly a bug, but not ideal. label Aug 22, 2024
@oliver-sanders oliver-sanders added this to the 8.x milestone Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
could be better Not exactly a bug, but not ideal.
Projects
None yet
Development

No branches or pull requests

1 participant