Description of problem:
With search query matching 0 hosts, remote execution job schedule page:
Preview keeps screen grayed, without preview window and [close] button at all, not error message shown
And details page (this is only for "Update Package - Katello SSH Default through SSH" template):
In "Preview for target", there is "Warning! error during rendering: undefined method 'operatingsystem' for NilClass::Jail (NilClass)" instead of some simple error message
These two pages does not handle search query returning 0 hosts too well
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Schedule remote execution job Monitor -> Jobs -> [Run job] with host
search query "name ~ such_a_host_does_not_exists"
2. Click icon of "eye" to preview matching hosts
3. Also try to schedule with:
Job category: Katello
Job template: Update Package...
and check "Preview for target" section
On schedule page if you click on preview button, it grays the screen and there is no way back.
On details page it shows template rendering warning
Should be possible to close grayed page and instead of template rendering error there should be informative error message like "No host matches the search query"
Created redmine issue http://projects.theforeman.org/issues/18510 from this bug
Upstream bug assigned to firstname.lastname@example.org
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18510 has been resolved.
Version Tested: Satellite-6.3 Snap 11
1. run job with search matching 0 hosts
2. see screenshots
Created attachment 1314229 [details]
verification screenshot - preview
Created attachment 1314230 [details]
verification screenshot - job details
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.