Bug #30556
closed'Host - compare content hosts packages' report fails with error 'undefined method '#first' for NilClass'
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1860351
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
Updated by Tomer Brisker about 4 years ago
- Category changed from Statistics to Reporting
- Priority changed from High to Normal
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shira Maximov
- Pull request https://github.com/theforeman/foreman/pull/7897 added
Updated by Shira Maximov about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|2a92b54c81902dd00c39536330b44d3d58fbbb5f.
Updated by Tomer Brisker about 4 years ago
- Fixed in Releases 2.2.0 added
- Fixed in Releases deleted (
2.3.0)
Updated by The Foreman Bot about 4 years ago
- Pull request https://github.com/theforeman/foreman/pull/7975 added
Updated by Evgeni Golov about 4 years ago
- Related to Bug #31191: Unrecognized status code :internal_error when scheduling a report fails added