Bug 1326562

Summary: TypeError: task is null - Recipe link results in blank page instead of access to logs
Product: [Retired] Beaker Reporter: Roman Joost <rjoost>
Component: web UIAssignee: Roman Joost <rjoost>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developCC: dcallagh, dowang, mjia, rjoost
Target Milestone: 23.0Keywords: Patch, UserExperience
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-07 23:10:24 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:

Description Roman Joost 2016-04-13 05:17:46 UTC
Description of problem:

When I run my job with the following XML:

<job retention_tag="scratch">
  <whiteboard>Beaker Hello World job</whiteboard>
  <recipeSet priority="Normal">
    <recipe whiteboard="" role="None" ks_meta="harness=restraint" kernel_options="" kernel_options_post="">
      <autopick random="false"/>
      <watchdog panic="None"/>
      <packages/>
      <ks_appends/>
      <repos/>
      <distroRequires/>
      <hostRequires>
        <system_type value="Machine"/>
      </hostRequires>
      <partitions/>
      <task name="/distribution/install" role="STANDALONE">
        <params>
          <param name="RHTS_OPTION_COMPATIBLE" value=""/>
          <param name="RHTS_OPTION_COMPAT_SERVICE" value=""/>
        </params>
      </task>
      <task name="/Sanity/test-hello-world" role="None">
        <fetch url="git://git.engineering.redhat.com/users/rjoost/beaker_sample_task.git"/>
      </task>
    </recipe>
  </recipeSet>
</job>

using restraint as a harness, the job gets aborted and I have no way of finding out.

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

develop

How reproducible:

100%

Steps to Reproduce:
1. Run or clone the job (https://beaker-devel.app.eng.bos.redhat.com/jobs/9456)
2. Wait until it is aborted
3. Click on the recipe link and you'll face a blank page

Actual results:

Blank page

Expected results:

Access to logs and task information

Additional info:

The job uses restraint and the task uses fetch_url instead of having pointers to the task library.

Comment 1 Roman Joost 2016-04-14 00:36:48 UTC
Patch available on gerrit:

https://gerrit.beaker-project.org/#/c/4808/

Comment 4 Dan Callaghan 2016-07-07 23:10:24 UTC
Beaker 23.0 has been released.