Bug 961277 - RFE: Accept job containing tasks that are not in task library if alternative harness is specified for this job
Summary: RFE: Accept job containing tasks that are not in task library if alternative ...
Keywords:
Status: CLOSED DUPLICATE of bug 1057459
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Callaghan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-09 10:33 UTC by Ľuboš Kardoš
Modified: 2018-02-06 00:41 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-17 03:08:37 UTC
Embargoed:


Attachments (Terms of Use)
job xml (1.21 KB, text/xml)
2013-05-09 10:33 UTC, Ľuboš Kardoš
no flags Details

Description Ľuboš Kardoš 2013-05-09 10:33:59 UTC
Created attachment 745609 [details]
job xml

Description of problem:
Beaker doesn't accept job containing task that are not in task librarary. But if for a job is alternative harness specified (not beah) by adding parameter "harness=..." into ks_meta and this alternative harness uses git for downloading tasks, there is no need to check if this task is in task library. 

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

How reproducible:
always

Steps to Reproduce:
1.Schedule job with attached job XML.
  
Actual results:
Beaker shows message "Failed to import job because of: u'Invalid task(s): install_log'" because the task "install_log" is not in beaker task library.

Expected results:
Beaker should accept this job because this job uses alternative harness that downloads tasks from git and not from beaker task library.


Additional info:

Comment 1 Bill Peck 2013-05-09 12:30:46 UTC
When I talked to Dan about this we agreed that if a task included a <fetch> node that beaker wouldn't attempt to look it up in it's database.  So the following would tell beaker to simply pass the info along to the harness which would install direct from git.

<task name="/my/task" role="STANDALONE">
 <fetch url="git://git.beaker-project.org/git_repo?branch#path/to/my/task"/>
</task>

I really hope this can be added to 1.0

Comment 2 Nick Coghlan 2013-11-05 01:37:14 UTC
Related patches:

fetch_url support: http://gerrit.beaker-project.org/2365
Draft external tasks proposal: http://gerrit.beaker-project.org/2366

Comment 3 Dan Callaghan 2014-03-17 03:08:37 UTC
This was proposed as "External Tasks for Jobs":

https://beaker-project.org/dev/proposals/external-tasks.html

and implemented in the 0.16 release: bug 1057459.

*** This bug has been marked as a duplicate of bug 1057459 ***


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