Skip to content

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

@oliver-sanders

Description

@oliver-sanders
  • 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).

Metadata

Metadata

Assignees

Labels

could be betterNot exactly a bug, but not ideal.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions