Red Hat Bugzilla – Bug 1274342
[RFE] add hostname to output
Last modified: 2016-04-20 20:22:03 EDT
Would it be possible to have restraint output the name or ID of the host executing the code? I have a test suite with 5 hosts that dumps a lot of output and it's not always easy to tell which host executes what from the output. I can tell by looking at the code but, it'd be easier if maybe each line had a hostname or id prefixed to it.
This could be an option and not default.
Is it possible to have separate logs for each host saved as a text file? Having separate logs will make it easier to debug failed tests. We can view server and client logs together for the same test without scrolling the lengthy console output. It becomes more difficult to debug a test failure, when the number of hosts in the job increases. So, separate logs for each host will be very helpful here.
steeve: we do record separate logs for each host and task under the job run. They are broken out by recipeid/taskid and then taskoutput.log.
Are you running with -vv ? That will output everything to the screen as well which makes a mess when you have more than one recipe running at once.
testing a change right now.
(In reply to Bill Peck from comment #2)
Thanks Bill. This will work.
Gerrit review was: https://gerrit.beaker-project.org/4698
This was released in restraint 0.1.24.