Bug 1599136
Summary: | [RFE] provide a documented way to run recipes where Beaker does not have harness packages for the distro (skip harness repo check) | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> |
Component: | general | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | dcallagh |
Target Milestone: | 26.0 | Keywords: | FutureFeature, Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-08 02:16:45 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
Dan Callaghan
2018-07-09 03:18:32 UTC
Two ideas come to mind: * A ksmeta to control whether Beaker will supply a default harness repo in the recipe. Call it "no_default_harness_repo" since we will always configure the harness repo by default. If you define "no_default_harness_repo" then we leave out the default harness repo (and thus don't check that it exists either). It's up to the job submitter to supply some working harness packages somehow. * If the recipe defines its own repo with id "beaker-harness", we already use that in place of the default repo. However I think we still (needlesssly) do the harness repo check. We could make this id be a special case which means, "do not supply the default harness repo because I am supplying my own" and then skip the harness repo check as well. This magic repo id would need to be documented somewhere (the behaviour is currently totally undocumented). I'm not sure where. Hm... I first thought using the second idea is the way to go, but realised that it's actually not really a nice solution. Accessing the 'beaker-harness' variable in the template is a no go anyway, because Jinja parses this as a Python expression (you're subtracting a string from an undefined). Ignoring this, and simply using what the user had provided wholesale feels like a good way to get weird behaviour. So I took the first route, since that is more explicit. You're opting out that Beaker provides you with a default harness. Supply your own via ks_appends. There is no such variable "beaker-harness". It is a repo id. Beaker 26.0 has been released. |