Bug 1274342

Summary: [RFE] add hostname to output
Product: [Retired] Restraint Reporter: Scott Poore <spoore>
Component: generalAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.1.21CC: beaker-dev-list, bpeck, dcallagh, dowang, mjia, rjoost, sgoveas
Target Milestone: 0.1.24Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-19 07:18:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Scott Poore 2015-10-22 14:00:54 UTC
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.  

Thanks,
Scott

Comment 1 Steeve Goveas 2016-02-26 10:07:52 UTC
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.

Comment 2 Bill Peck 2016-02-26 13:14:26 UTC
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.

Comment 3 Bill Peck 2016-02-26 15:18:14 UTC
testing a change right now.

Comment 4 Steeve Goveas 2016-02-29 11:44:35 UTC
(In reply to Bill Peck from comment #2)
Thanks Bill. This will work.

Comment 8 Dan Callaghan 2016-04-19 07:18:47 UTC
Gerrit review was: https://gerrit.beaker-project.org/4698

This was released in restraint 0.1.24.