Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1198925

Summary: provisioning a new host or discovered host raises 500 internal server error:
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: ProvisioningAssignee: Tomer Brisker <tbrisker>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.1.0CC: bkearney, bthurber, gsutclif, jmontleo, kbidarka, lzap, mhulan, mmccune, tbrisker
Target Milestone: UnspecifiedKeywords: Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:59:13 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
500 ISE when you try to create new host none

Description Sachin Ghai 2015-03-05 06:36:47 UTC
Created attachment 998176 [details]
500 ISE when you try to create new host

Description of problem:
I installed sat6.1 snap5 on rhel7.1. but when trying to provision a new host or discovered host, UI raises following error:

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

Version-Release number of selected component (if applicable):
sat6.1 snap5 on rhel7.1
Satellite-6.1.0-RHEL-7-20150303.0

How reproducible:
always

Steps to Reproduce:
1. click on new host. 
2.
3.

Actual results:
"NetworkError: 500 Internal Server Error - https://dhcp201-171.englab.pnq.redhat.com/hosts/new"

Expected results:
new host form should be opened up

Additional info:
production.log:

--
2015-03-05 12:01:04 [I] Processing by HostsController#new as HTML
2015-03-05 12:01:04 [I]   Rendered hosts/_progress.html.erb (0.2ms)
2015-03-05 12:01:04 [I]   Rendered hosts/_unattended.html.erb (13.8ms)
2015-03-05 12:01:04 [I]   Rendered hosts/_form.html.erb (78.3ms)
2015-03-05 12:01:04 [I]   Rendered hosts/new.html.erb within layouts/application (79.5ms)
2015-03-05 12:01:05 [I] Completed 500 Internal Server Error in 359ms
2015-03-05 12:01:05 [F] 
ActionView::MissingTemplate (Missing partial common/domain with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :haml, :rabl]}. Searched in:
  * "/usr/share/foreman/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/redhat_access-0.0.8/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.5/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-4.0.2/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_abrt-0.0.5/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.19/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/bastion-0.2.9/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.12/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.2/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.5/app/views"
):
  app/views/hosts/_unattended.html.erb:26:in `block in _app_views_hosts__unattended_html_erb___2577460272913705115_69879467400060'
  app/views/hosts/_unattended.html.erb:15:in `_app_views_hosts__unattended_html_erb___2577460272913705115_69879467400060'
  app/views/hosts/_form.html.erb:127:in `block (2 levels) in _app_views_hosts__form_html_erb___3578217140288340458_69879464647280'
  app/helpers/layout_helper.rb:268:in `form_for'
  app/views/hosts/_form.html.erb:8:in `block in _app_views_hosts__form_html_erb___3578217140288340458_69879464647280'
  app/models/taxonomy.rb:59:in `block (2 levels) in as_taxonomy'
  app/models/concerns/foreman/thread_session.rb:148:in `as_location'
  app/models/taxonomy.rb:58:in `block in as_taxonomy'
  app/models/concerns/foreman/thread_session.rb:113:in `as_org'
  app/models/taxonomy.rb:57:in `as_taxonomy'
  app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb___3578217140288340458_69879464647280'
  app/views/hosts/new.html.erb:7:in `_app_views_hosts_new_html_erb__3031514276587516373_69879474315700'
  app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
  lib/middleware/catch_json_parse_errors.rb:9:in `call'
--

Comment 3 Lukas Zapletal 2015-03-05 08:48:38 UTC
Lets have a look.

Comment 4 Kedar Bidarkar 2015-03-05 09:30:04 UTC
I am facing this issue too.

2015-03-05 14:54:11 [I] Processing by HostsController#new as HTML
2015-03-05 14:54:11 [I] ^[[1;32mDeface:^[[0m 1 overrides found for 'hosts/_form'
2015-03-05 14:54:11 [I] ^[[1;32mDeface:^[[0m 'hosts_update_environments_select' matched 1 times with 'code[erb-loud]:contains("select_f"):contains(":environment_id")'
2015-03-05 14:54:11 [I]   Rendered hosts/_progress.html.erb (1.0ms)
2015-03-05 14:54:11 [I]   Rendered hosts/_unattended.html.erb (18.6ms)
2015-03-05 14:54:11 [I]   Rendered hosts/_form.html.erb (100.2ms)
2015-03-05 14:54:11 [I]   Rendered hosts/new.html.erb within layouts/application (319.7ms)
2015-03-05 14:54:11 [I] Completed 500 Internal Server Error in 370ms
2015-03-05 14:54:11 [F]
ActionView::MissingTemplate (Missing partial common/domain with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :haml, :rabl]}. Searched in:
  * "/usr/share/foreman/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/redhat_access-0.0.8/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.5/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_openscap-0.3.2.1/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/scaptimony-0.3.0.1/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.19/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/bastion-0.2.9/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-4.0.2/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.2/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.12/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_abrt-0.0.5/app/views"
  * "/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.5/app/views"
):
  app/views/hosts/_unattended.html.erb:26:in `block in _app_views_hosts__unattended_html_erb__1495752355474714403_141588240'
  app/views/hosts/_unattended.html.erb:15:in `_app_views_hosts__unattended_html_erb__1495752355474714403_141588240'
  app/views/hosts/_form.html.erb:127:in `block (2 levels) in _app_views_hosts__form_html_erb___3666052404534455857_70284695347020'
  app/helpers/layout_helper.rb:268:in `form_for'
  app/views/hosts/_form.html.erb:8:in `block in _app_views_hosts__form_html_erb___3666052404534455857_70284695347020'
  app/models/taxonomy.rb:59:in `block (2 levels) in as_taxonomy'
  app/models/concerns/foreman/thread_session.rb:148:in `as_location'
  app/models/taxonomy.rb:58:in `block in as_taxonomy'
  app/models/concerns/foreman/thread_session.rb:113:in `as_org'
  app/models/taxonomy.rb:57:in `as_taxonomy'
  app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb___3666052404534455857_70284695347020'
  app/views/hosts/new.html.erb:7:in `_app_views_hosts_new_html_erb___4147537332220995480_70284695334140'

Comment 7 Lukas Zapletal 2015-03-05 09:56:37 UTC
Search for "common/domain" in the both patches to see the problem.

Comment 17 Lukas Zapletal 2015-03-11 08:29:03 UTC
Are you sure it will not cause https://bugzilla.redhat.com/show_bug.cgi?id=1195630 again?

Comment 18 Mike McCune 2015-03-11 23:34:32 UTC
FYI: reverting 91248b62e355e3ad8f491f7ea7955ac3df5d02ac allows me to select domain+subnet in a hostgroup without error.

Comment 19 Tomer Brisker 2015-03-12 07:28:57 UTC
Moving to post, reversion by Mike should fix this.

Comment 21 Sachin Ghai 2015-03-13 17:33:50 UTC
Verified with:

sat6.1 beta snap6 compose2 (Satellite-6.1.0-RHEL-6-20150311.1).

I can successfully provision the host.

Comment 22 Bryan Kearney 2015-08-11 13:24:26 UTC
This bug is slated to be released with Satellite 6.1.

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