Bug 1491522

Summary: Navigating to Facts shows undefined method `name' for nil:NilClass
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: FactAssignee: Tomer Brisker <tbrisker>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, mhulan, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of UI
none
log in production.log file
none
screenshot of UI Facts when discovered a host none

Description Nikhil Kathole 2017-09-14 05:17:15 UTC
Created attachment 1325718 [details]
screenshot of UI

Description of problem: We were trying to see facts of host under "Any Organization" but It showed "Something went wrong undefined method `name' for nil:NilClass" and production.log shows internal server error. This was reproducible when we had discovered host under Hosts -> Discovered Hosts.


Version-Release number of selected component (if applicable): Satellite 6.3 snap 15


How reproducible: always


Steps to Reproduce:
1. Discovered a host using discovery provisioning 
2. Check host is discovered successfully under Hosts -> Discovered Hosts
3. Navigate to "Any organization"
4. Click on Monitor -> Facts

Actual results:
Facts page shows error as "Oops, we're sorry but something went wrong undefined method `name' for nil:NilClass" and production.log shows 500 internal server error.

Expected results:
Error should get handled.



Additional info:

Comment 1 Nikhil Kathole 2017-09-14 05:19:44 UTC
Created attachment 1325731 [details]
log in production.log file

Comment 4 Satellite Program 2017-09-15 12:07:13 UTC
Upstream bug assigned to tbrisker

Comment 5 Satellite Program 2017-09-15 12:07:15 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16082 has been resolved.

Comment 6 Nikhil Kathole 2017-10-03 09:46:27 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 18

steps:

1. Discovered a host
2. Navigated to "Any organization"
3. Navigated to Monitor -> Facts

Successfully displayed facts page.

Comment 7 Nikhil Kathole 2017-10-03 09:48:08 UTC
Created attachment 1333571 [details]
screenshot of UI Facts when discovered a host

Comment 8 Bryan Kearney 2018-02-21 17:32:40 UTC
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.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 9 Bryan Kearney 2018-02-21 17:33:10 UTC
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.

https://access.redhat.com/errata/RHSA-2018:0336