Created attachment 1355522 [details] screenshot of UI Description of problem: We were working on verifying https://bugzilla.redhat.com/show_bug.cgi?id=1500263. After upgrade from 6.2.12 > 6.3 snap 25, we were trying to rerun/ rerun failed the ReX job which was created on 6.2.12. But clicking submit button gives error as Oops, we're sorry but something went wrong undefined method `input_values' for nil:NilClass. Version-Release number of selected component (if applicable): Satellite 6.3 snap 25 How reproducible: always Steps to Reproduce: 1. Install 6.2.12 2. Perform some remote execution job (atleast one successful and one failed) 3. Upgrade to satellite 6.3 snap 25 4. Try to rerun/ rerun failed the ReX job Actual results: Clicking submit gave Oops, we're sorry but something went wrong undefined method `input_values' for nil:NilClass and production.log showed 500 Internal Server Error. (see attachments) Expected results: ReX job should rerun successfully. Additional info:
Created redmine issue http://projects.theforeman.org/issues/21704 from this bug
The bug is caused by templates not being assigned to Organizations/Locations. This happens after upgrade from 6.2 to 6.3 and is already handled in another BZ[1]. Also rerunning a job with a template in another org/loc never worked, so it is not a regression. Moving it out of 6.3. How reproducible: always Steps to reproduce: 1) Run a job 2) Go to Hosts > Job Templates 3) Edit the template 4) Remove the template from current Organization and Location 5) Rerun the job from 1 6) (optional) notice the job form is malformed (missing some fields, displaying different values in Job category and Job template fields) 7) Click submit anyway [1] - https://bugzilla.redhat.com/show_bug.cgi?id=1522734
Upstream bug assigned to aruzicka
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/21704 has been resolved.
VERIFIED version tested: Satellite 6.5 snap 14 Rerunning a ReX job with JobTemplate not in current Org/Loc shows the correct error message as "Warning! Could not rerun job <id> because its template could not be found"
Created attachment 1527773 [details] screenshot of UI : error handled
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:1222