Bug 624651

Summary: [RFE] rhts-submit-log should be able to upload log to the sub-result
Product: [Retired] Beaker Reporter: Jan Hutař <jhutar>
Component: command lineAssignee: beaker-dev-list
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 0.5CC: bpeck, jtluka, mcsontos, tklohna, tools-bugs, vbenes, vrutkovs
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: SimpleHarness
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-03 11:48:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 545868, 524612    

Description Jan Hutař 2010-08-17 11:26:04 UTC
Description of problem:
I would like to be able to upload more than 1 log to the sub-result. Currently only rhts-report-result can attach (only one) file to the tests sub-result.


Additional info:
This might be extra option to rhts-submit-log where I can specify sub-test name, or changing rhts-report-result so it can upload multiple files.

Comment 1 Nick Coghlan 2012-10-17 04:37:53 UTC
Bulk reassignment of issues as Bill has moved to another team.

Comment 3 Vladimir Benes 2014-02-21 16:28:28 UTC
any update here? We use STH (Simple test harness) and it works with sub task massively. 
Uploading webm videos to each dogatil job would be more accurate to each sub-task instead to task itsel with $TEST recognition.

see:
https://beaker.engineering.redhat.com/jobs/593560

Comment 4 Bill Peck 2014-02-21 16:43:45 UTC
I'm slightly confused. You say your using an alternate harness but you still need rhts-submit-log?

Comment 5 Jan Tluka 2014-11-03 16:25:04 UTC
Hi, this would be very handy also in our network regression testing where I need to submit 2 and more log files.

+1 for this feature!

Comment 6 Dan Callaghan 2014-11-19 04:09:40 UTC
There is no nice way to squeeze this into rhts-report-result because its API unfortunately is based on four positional arguments, not options.

    Usage: rhts-report-result TESTNAME TESTRESULT LOGFILE [METRIC]

For alternative harnesses I recommend just using the lab controller HTTP API directly to upload as many files as you want, instead of going through the mess of the rhts-* shell layer.

I will have a look if restraint has a good way of allowing this.

Comment 7 Jan Tluka 2014-11-19 09:34:07 UTC
(In reply to Dan Callaghan from comment #6)
> There is no nice way to squeeze this into rhts-report-result because its API
> unfortunately is based on four positional arguments, not options.
> 
>     Usage: rhts-report-result TESTNAME TESTRESULT LOGFILE [METRIC]
> 
> For alternative harnesses I recommend just using the lab controller HTTP API
> directly to upload as many files as you want, instead of going through the
> mess of the rhts-* shell layer.
> 
> I will have a look if restraint has a good way of allowing this.

Where can I find documentation on Beaker HTTP API?

Comment 8 Dan Callaghan 2014-11-19 13:50:22 UTC
(In reply to Jan Tluka from comment #7)
> Where can I find documentation on Beaker HTTP API?

The bits for harnesses is here:

https://beaker-project.org/docs/alternative-harnesses/

Comment 9 Tomas Klohna 🔧 2019-04-03 11:48:03 UTC
Workaround from Dan is sufficient. Closing this issue due to inactivity. If you would like to see something native implemented in Restraint, create a new ticket please.