Bug 1218504

Summary: On clicking 'Device_identifier info_box on add_interface form raises error: Operation FAILED: undefined method `fetch' for nil:NilClass
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Marek Hulan <mhulan>
WebUI sub component: Foreman QA Contact: Sachin Ghai <sghai>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: unspecified CC: bbuckingham, bkearney
Version: 6.1.0Keywords: Regression, Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10412
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:56:59 UTC 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
firebug raises network error 500 ISE none

Description Sachin Ghai 2015-05-05 06:27:48 UTC
Description of problem:
when you open add_interface modal window and click on info box, it doesn't expand. Also firebug raises:

"NetworkError: 500 Internal Server Error - https://dhcp201-172.englab.pnq.redhat.com/interfaces/new"

production.log:
===============

2015-05-05 11:54:48 [I] Processing by InterfacesController#new as JS
2015-05-05 11:54:48 [W] Operation FAILED: undefined method `fetch' for nil:NilClass
2015-05-05 11:54:48 [I]   Rendered common/500.html.erb (4.8ms)
2015-05-05 11:54:48 [I] Completed 500 Internal Server Error in 22ms (Views: 5.5ms | ActiveRecord: 2.1ms)
2015-05-05 11:55:02 [I] Processing by InterfacesController#new as JS
2015-05-05 11:55:02 [W] Operation FAILED: undefined method `fetch' for nil:NilClass
2015-05-05 11:55:02 [I]   Rendered common/500.html.erb (4.7ms)
2015-05-05 11:55:02 [I] Completed 500 Internal Server Error in 22ms (Views: 5.4ms | ActiveRecord: 2.1ms)


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

sat6.1 GA snap2(Satellite-6.1.0-RHEL-7-20150429.2)

How reproducible:
always

Steps to Reproduce:
1. New_host --> add_interface --Device_identifier info_box/tool_tip
2.
3.

Actual results:
Operation FAILED: undefined method `fetch' for nil:NilClass in production.log
Couldn't open Device_identifier info_box on clicking it

Expected results:
on click, Device_identifier info_box should be expanded and no error thrown in logs

Additional info:

Comment 1 Sachin Ghai 2015-05-05 06:31:01 UTC
Created attachment 1022068 [details]
firebug raises network error 500 ISE

Comment 4 Bryan Kearney 2015-05-06 13:00:54 UTC
Per the triage discussions, this is not a blocker since it is an info box only.

Comment 6 Marek Hulan 2015-05-07 10:51:18 UTC
I was unable to reproduce on Satellite-6.1.0-RHEL-7-20150506.0, if Sachin confirms, this can be closed.

Comment 7 Sachin Ghai 2015-05-07 12:47:58 UTC
@Marek: Issue is reproducible with sanp3. Its reproducible only when new host form is filled-up with some info.

Comment 8 Sachin Ghai 2015-05-07 12:57:29 UTC
Just to be clear.. Its reproducible with: New_host --> add_interface --> select bmc/bond interface --> click Device_identifier.

Comment 9 Marek Hulan 2015-05-07 13:45:12 UTC
Created redmine issue http://projects.theforeman.org/issues/10412 from this bug

Comment 12 Marek Hulan 2015-05-12 07:17:24 UTC
Please note that the error in log is not related and can be ignored.

Comment 14 Sachin Ghai 2015-05-14 13:05:24 UTC
Verified with sat6.1 GA snap4 compose2.

Error message still appears though I can see and expand the info box,

Comment 15 Sachin Ghai 2015-05-14 13:07:05 UTC
Created attachment 1025398 [details]
I can expand infobox

Comment 16 Sachin Ghai 2015-05-14 13:13:15 UTC
Filed bz for error in production.logs:

https://bugzilla.redhat.com/show_bug.cgi?id=1221632

Comment 17 Bryan Kearney 2015-08-11 13:30:51 UTC
This bug is slated to be released with Satellite 6.1.

Comment 18 Bryan Kearney 2015-08-12 13:56:59 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.