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 1909657 - undefined method `title' for nil:NilClass when viewing a host without a location
Summary: undefined method `title' for nil:NilClass when viewing a host without a location
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Tomer Brisker
QA Contact: tstrych
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-21 10:13 UTC by Evgeni Golov
Modified: 2021-04-01 09:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-01 09:29:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28891 0 Normal Closed All hosts showing "Failure: undefined method `title' for nil:NilClass" in Properties pane 2021-04-01 09:23:54 UTC

Description Evgeni Golov 2020-12-21 10:13:48 UTC
Description of problem:
When viewing a host entry that has no location assigned, 6.7 will render a "undefined method `title' for nil:NilClass" error on the left hand side where the host details are listed.

This was not an issue in 6.6

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

How reproducible:
100%

Steps to Reproduce:
1. visit https://dogfood.sat.engineering.redhat.com/hosts/sat-r220-02.lab.eng.rdu2.redhat.com

Actual results:
undefined method `title' for nil:NilClass

Expected results:
host details are shown

Additional info:
from production log:
2020-12-21T05:11:32 [I|app|49156a3c] Started GET "/hosts/sat-r220-02.lab.eng.rdu2.redhat.com/overview" for 10.36.114.136 at 2020-12-21 05:11:32 -0500
2020-12-21T05:11:32 [I|app|49156a3c] Processing by HostsController#overview as HTML
2020-12-21T05:11:32 [I|app|49156a3c]   Parameters: {"id"=>"sat-r220-02.lab.eng.rdu2.redhat.com"}
2020-12-21T05:11:32 [I|app|49156a3c]   Rendered hosts/_overview.html.erb (181.3ms)
2020-12-21T05:11:32 [W|app|49156a3c] Failed to fetch overview information
2020-12-21T05:11:32 [I|app|49156a3c]   Rendered common/_ajax_error.html.erb (0.7ms)
2020-12-21T05:11:32 [I|app|49156a3c] Completed 500 Internal Server Error in 208ms (Views: 1.3ms | ActiveRecord: 24.7ms)

Comment 1 Tomer Brisker 2021-04-01 09:23:52 UTC
Connecting redmine issue https://projects.theforeman.org/issues/28891 from this bug

Comment 2 Tomer Brisker 2021-04-01 09:29:42 UTC
This has been fixed already in 6.8, closing as CURRENTRELEASE


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