Bug 585153

Summary: RFE: Add XML-RPC-way to access uploaded files
Product: [Retired] Beaker Reporter: Marian Csontos <mcsontos>
Component: schedulerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 0.8CC: azelinka, bpeck, dcallagh, jhutar, kbaker, ksrot, mcermak, mcsontos, psplicha, rmancy, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-26 07:16:21 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    
Attachments:
Description Flags
bkr job-logs none

Description Marian Csontos 2010-04-23 09:33:01 UTC
Description of problem:

There is no way for client to list and get files attached to {recipe,task,result}

This would enable bkr client extension:
  bkr file-list T:1234
  bkr file-get TR:12345 /TESTOUT.log


Version-Release number of selected component (if applicable):

0.5.25

Comment 1 Marian Csontos 2011-03-14 10:09:21 UTC
At least an URL to directory where the files are stored could be exposed in taskactions.to_xml and in taskactions.task_info.

This location changes during lifetime (temporary storage and final destiny) as well as it was reorganized few times in the past.

It is not easy to get to the files: one needs to have a knowledge of server settings (e.g. how are the jobs grouped) which should not be required.

Comment 2 Karel Srot 2011-05-09 06:37:14 UTC
+1 for this feature

Comment 3 Dan Callaghan 2012-02-01 03:43:24 UTC
*** Bug 786127 has been marked as a duplicate of this bug. ***

Comment 4 Martin Cermak 2012-02-08 10:19:32 UTC
+1 to solving this

Comment 5 Jiri Kastner 2012-02-08 10:25:53 UTC
Created attachment 560214 [details]
bkr job-logs

result of my attempt get some logs listed

Comment 6 Martin Cermak 2012-02-08 14:10:23 UTC
Good job, Jiri! Thanks for posting this! I temporarily resolved my issues using your script. And I hope your post will also speed up resolving this bz :)

Comment 7 Dan Callaghan 2012-02-20 06:06:57 UTC
Patch is up for review on Gerrit:

http://gerrit.beaker-project.org/925