Bug 1191849

Summary: Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Tomer Brisker <tbrisker>
WebUI sub component: Foreman QA Contact: Sachin Ghai <sghai>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: bkearney, ohadlevy, tbrisker
Version: 6.1.0Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/9444
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:56:14 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: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab
none
Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab
none
no error in firebug, on selecting domain from hostgroup form none

Description Sachin Ghai 2015-02-12 06:48:49 UTC
Created attachment 990747 [details]
Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab

Description of problem:
Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab

--
"NetworkError: 404 Not Found - https://dhcp201-167.englab.pnq.redhat.com/hostgroups/current_parameters"
"NetworkError: 404 Not Found - https://dhcp201-167.englab.pnq.redhat.com/hostgroups/domain_selected"
--

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150210.0
Sat6.1.0 beta snap2

How reproducible:
always

Steps to Reproduce:
1. Go to "configure" --> Host Group --> New Host Group --> Network
2. select domain from dropdown
a) select the domain name from drop down (make sure domain is already created one)
b) Now select the blank line from drop down



Actual results:
production.log:

Processing by HostgroupsController#current_parameters as */*
  Parameters: {"hostgroup_id"=>"null", "hostgroup_parent_id"=>"undefined"}
  Rendered common/404.html.erb within layouts/application (1.2ms)
  Rendered layouts/base.html.erb (1.4ms)
Completed 404 Not Found in 22ms (Views: 6.1ms | ActiveRecord: 1.9ms)
Processing by HostgroupsController#domain_selected as */*
  Parameters: {"domain_id"=>""}
Completed 404 Not Found in 13ms (ActiveRecord: 1.6ms)


Expected results:
no error should be raised neither in production.log nor in firebug console

Additional info:

Comment 2 Sachin Ghai 2015-02-12 07:24:06 UTC
Getting 404 on selecting "Puppet Environment" too:

--
Processing by HostgroupsController#puppetclass_parameters as */*
  Parameters: {"hostgroup_id"=>"null"}
  Rendered common/404.html.erb within layouts/application (8.1ms)
  Rendered layouts/base.html.erb (3.0ms)
Completed 404 Not Found in 199ms (Views: 179.1ms | ActiveRecord: 2.4ms)
--

Comment 3 Sachin Ghai 2015-02-12 07:27:40 UTC
Another 404 on selecting "Host Group --> New Host Group --> operating system

Processing by HostgroupsController#os_selected as */*
  Parameters: {"operatingsystem_id"=>"2"}
  Rendered common/os_selection/_operatingsystem.html.erb (206.8ms)
Completed 200 OK in 234ms (Views: 205.8ms | ActiveRecord: 7.2ms)
Processing by HostgroupsController#current_parameters as */*
  Parameters: {"hostgroup_id"=>"null", "hostgroup_parent_id"=>"undefined"}
  Rendered common/404.html.erb within layouts/application (1.3ms)
  Rendered layouts/base.html.erb (1.5ms)
Completed 404 Not Found in 23ms (Views: 5.4ms | ActiveRecord: 2.0ms)

Comment 4 Sachin Ghai 2015-02-18 11:01:24 UTC
Getting same issue in sat6.1 beta snap3..

Comment 5 Bryan Kearney 2015-02-18 21:10:24 UTC
Created redmine issue http://projects.theforeman.org/issues/9444 from this bug

Comment 6 Bryan Kearney 2015-03-24 10:04:47 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9444 has been closed
-------------
Anonymous
Applied in changeset commit:e1aec1dcdecbe4f9006c9404c820072e8e636cb6.

Comment 8 Sachin Ghai 2015-04-27 08:46:35 UTC
Verified with:

Satellite6.1 GA Snap1 compose2 (Satellite-6.1.0-RHEL-7-20150424.0)

This issue is still reproducible:

1. Create a new hostgroup
2. goto network tab and select and unselect domain
3. make sure firebug is open

--
2015-04-27 04:41:52 [I] Processing by HostgroupsController#current_parameters as */*
2015-04-27 04:41:52 [I]   Parameters: {"hostgroup_id"=>"null", "hostgroup_parent_id"=>"undefined"}
2015-04-27 04:41:52 [I]   Rendered common/404.html.erb within layouts/application (0.9ms)
2015-04-27 04:41:52 [I]   Rendered layouts/base.html.erb (0.9ms)
2015-04-27 04:41:52 [I] Completed 404 Not Found in 15ms (Views: 3.4ms | ActiveRecord: 2.1ms)
---

Comment 9 Sachin Ghai 2015-04-27 08:48:02 UTC
Created attachment 1019278 [details]
Firebug raises: "NetworkError: 404 Not Found" on selecting the 'Domain' from "New_Host_group --> Network" tab

Comment 12 Sachin Ghai 2015-05-04 10:11:19 UTC
Thanks.. verified with sat6.1 GA Snap2 (Satellite-6.1.0-RHEL-7-20150429.2)

On selecting the domain from hostgroup form, no error raised in firebug. However there are still issues with subnet selection. I'll file another issues.

Comment 13 Sachin Ghai 2015-05-04 10:19:21 UTC
Created attachment 1021628 [details]
no error in firebug, on selecting domain from hostgroup form

Comment 14 Sachin Ghai 2015-05-04 11:06:54 UTC
For subnet selection, already another bz is open: https://bugzilla.redhat.com/show_bug.cgi?id=1191855

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

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