client output not available in server log

Bug #1042510 reported by Javier Collado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
Fix Released
Low
Javier Collado

Bug Description

When the client fails to execute correctly, the output isn't available in the server logs:

INFO: Running command through SSH: utah -r /tmp/master.run -o /var/log/utah/utah-4-quantal-amd64_master.run_tmp
DEBUG: Closing SSH connection
WARNING: Return code: 255
DEBUG: Standard output follows:
DEBUG: Standard error follows:
ERROR: utah failed with return code: 255

This makes difficult to troubleshoot a problem in the client. The reason for the output to be missing is that the `-o <file>` argument is used to redirect the output that is usually printed to stdout to a file.

To make log more complete, the `-o <file>` option shouldn't be used. Instead, the results printed to stdout should be captured and stored in a file later. This way we get the results in a file on a successful execution or the output with the error messages in the log file.

Related branches

Changed in utah:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Javier Collado (javier.collado)
status: Triaged → In Progress
Changed in utah:
status: In Progress → Fix Committed
Changed in utah:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.