Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Hi Ranjan,
Thanks for the bugzilla report.
Is this a duplicate of bug 1860430?
Would it be possible to provide the exact reproducer steps in each bugzilla so that we can see what is different?
Thanks!
@Brad
Yes, Its different from BZ#1860430
Easy to reproduce, Just use a hostname that do not exist in satellite. For eg host_not_exit.local doesn't exist in satellite. This will raise an error. But it should return a valid error message like "404 Host host_not_exit.local not found"
hammer report-template generate --inputs "Host 1 = host1.example.local,Host 2 = host_not_exit.local" --name 'Host - compare content hosts packages'
Unrecognized status code :internal_error
Comment 12Lukáš Hellebrandt
2020-09-18 10:11:13 UTC
This is *almost* fixed right, except when I enter the same (valid) hosts in both host fields, I get a misleading error of "At least one of the hosts couldn't be found."
Shira, do you prefer me to fail this BZ or validate it and file a new one about this minor issue?
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 (Important: Satellite 6.8 release), 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-2020:4366
Created attachment 1702332 [details] Screen 1 Description of problem: Generating 'Host - compare content hosts packages' using wrong host fails with error "undefined method '#first' for NilClass::Jail (NilClass)" in WebUI Hammer also fails with different error #hammer report-template generate --inputs "Host 1 = host1.example.local,Host 2 = wrong.host.local" --name 'Host - compare content hosts packages' Unrecognized status code :internal_error Production log: 2020-07-24T16:25:53 [I|app|16e87c8c] Started POST "/api/report_templates/243/generate" for 127.0.0.1 at 2020-07-24 16:25:53 +0530 2020-07-24T16:25:53 [I|app|16e87c8c] Processing by Api::V2::ReportTemplatesController#generate as JSON 2020-07-24T16:25:53 [I|app|16e87c8c] Parameters: {"input_values"=>"[FILTERED]", "apiv"=>"v2", "id"=>"243", "report_template"=>{}} 2020-07-24T16:25:53 [I|app|16e87c8c] Authorized user admin(Admin User) 2020-07-24T16:25:53 [W|app|16e87c8c] Scoped order is ignored, it's forced to be batch order. 2020-07-24T16:25:53 [W|app|16e87c8c] Scoped order is ignored, it's forced to be batch order. 2020-07-24T16:25:54 [W|app|16e87c8c] Action failed 2020-07-24T16:25:54 [I|app|16e87c8c] Rendering api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout 2020-07-24T16:25:54 [I|app|16e87c8c] Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (Duration: 14.6ms | Allocations: 6560) 2020-07-24T16:25:54 [I|app|16e87c8c] Completed 500 Internal Server Error in 434ms (Views: 21.5ms | ActiveRecord: 69.9ms | Allocations: 198510) Version-Release number of selected component (if applicable): Satellite 6.8 How reproducible: Always Actual results: raise and error Expected results: Should fail with valid error message Additional info: [root@dhcp130-171 foreman]# rpm -qa satellite satellite-6.8.0-0.7.beta.el7sat.noarch [root@dhcp130-171 foreman]# rpm -qa foreman foreman-2.1.0.1-1.el7sat.noarch [root@dhcp130-171 foreman]# rpm -qa katello katello-3.16.0-0.4.rc4.el7sat.noarch