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.
Bug 1600456 - All hosts page broke: comparison of String with nil failed
Summary: All hosts page broke: comparison of String with nil failed
Keywords:
Status: CLOSED DUPLICATE of bug 1599989
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-12 10:05 UTC by Nikhil Kathole
Modified: 2018-07-12 11:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-12 11:26:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of UI (23.24 KB, image/png)
2018-07-12 10:05 UTC, Nikhil Kathole
no flags Details

Description Nikhil Kathole 2018-07-12 10:05:20 UTC
Created attachment 1458334 [details]
screenshot of UI

Description of problem:

While verifying https://bugzilla.redhat.com/show_bug.cgi?id=1477550, I run remote execution job on multiple host (more than 20 hosts using select all bulk action).

But after that found Hosts -> All hosts page is broken.

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

Satellite 6.4 snap 11


How reproducible: always


Steps to Reproduce:
1. Create 25 content hosts in satellite (assuming per page entries 20)
2. Select all hosts
3. Click "Select all X hosts"
4. Select action > schedule remote job
5. Run remote execution job on all hosts
6. Navigate to Hosts -> all hosts page

Actual results:

Remote execution job will run on all hosts but after that all hosts page found broken showing error

Oops, we're sorry but something went wrong comparison of String with nil failed

and production.log showed

2018-07-12T06:00:32 [I|app|] Started GET "/hosts" for IP at 2018-07-12 06:00:32 -0400
2018-07-12T06:00:32 [I|app|175aa] Processing by HostsController#index as HTML
2018-07-12T06:00:32 [I|app|175aa] Current user: admin (administrator)
2018-07-12T06:00:32 [I|app|175aa]   Rendering hosts/index.html.erb within layouts/application
2018-07-12T06:00:32 [I|app|175aa]   Rendered hosts/_list.html.erb (39.0ms)
2018-07-12T06:00:32 [I|app|175aa]   Rendered hosts/index.html.erb within layouts/application (53.0ms)
2018-07-12T06:00:32 [W|app|175aa] Action failed
ActionView::Template::Error: comparison of String with nil failed
/usr/share/foreman/app/helpers/hosts_helper.rb:104:in `sort_by'
/usr/share/foreman/app/helpers/hosts_helper.rb:104:in `name_column'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.9.3/app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb:10:in `name_column'
/usr/share/foreman/app/views/hosts/_list.html.erb:33:in `block in _1079a410898c9228e0671c41cb785529'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/app/views/hosts/_list.html.erb:21:in `_1079a410898c9228e0671c41cb785529'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.6/lib/action_view/template.rb:157:in `block in render'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in `instrument'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.6/lib/action_view/template.rb:352:in `instrument_render_template'


Expected results: 

All hosts page should not break.


Additional info:
Satellite was having some provisioned host and some content hosts.

Comment 5 Tomer Brisker 2018-07-12 11:26:15 UTC

*** This bug has been marked as a duplicate of bug 1599989 ***


Note You need to log in before you can comment on or make changes to this bug.