Bug 1274342 - [RFE] add hostname to output
Summary: [RFE] add hostname to output
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Restraint
Classification: Retired
Component: general
Version: 0.1.21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.1.24
Assignee: Bill Peck
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-22 14:00 UTC by Scott Poore
Modified: 2016-04-21 00:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-19 07:18:47 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.