Project

General

Profile

Actions

Bug #11941

closed

Error: 500 Internal Server Error on accessing discovered_host from webUI

Added by Sachin Ghai over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Discovery plugin
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I discovered a host using latest discovery image tar fdi-image-3.0.1.tar. Host was successfully discovered. I can see Success message on TUI screen. However when I go to server, Hosts -> DiscoveredHosts to check the host, I got following :We're sorry, but something went wrong.

2015-09-24 03:09:18 [app] [I] 
 | 
 | Started POST "/api/v2/discovered_hosts/facts" for 192.168.100.24 at 2015-09-24 03:09:18 -0400
2015-09-24 03:09:18 [app] [I] Processing by Api::V2::DiscoveredHostsController#facts as JSON
2015-09-24 03:09:18 [app] [I]   Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2015-09-24 03:09:18 [app] [I] Import facts for 'mac525400104461' completed. Added: 0, Updated: 0, Deleted 0 facts
2015-09-24 03:09:18 [app] [I] Completed 201 Created in 96ms (Views: 3.1ms | ActiveRecord: 0.0ms)
2015-09-24 03:09:25 [app] [I] 
 | 
 | Started GET "/discovered_hosts" for 10.65.xxx.xx at 2015-09-24 03:09:25 -0400
2015-09-24 03:09:25 [app] [I] Processing by DiscoveredHostsController#index as HTML
2015-09-24 03:09:25 [app] [I] Completed 500 Internal Server Error in 12ms
2015-09-24 03:09:25 [app] [F] 
 | ActionView::MissingTemplate (Missing template discovered_hosts/index, application/index with {:locale=>[:en], :formats=>[:html, :xml], :handlers=>[:erb, :builder, :rabl]}. Searched in:
 |   * "/usr/share/foreman/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.0.6/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-4.0.0/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_bootdisk-6.0.0/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.3/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/bastion-2.0.1/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-1.4.1/app/views" 
 |   * "/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/app/views" 
 | ):
 |   app/controllers/concerns/application_shared.rb:13:in `set_timezone'
 |   app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 |   lib/middleware/catch_json_parse_errors.rb:9:in `call'
 | 

I'm using foreman+katello nightly and setup is installed with katello-deploy. Reproducible with following rpms:

tfm-rubygem-foreman_discovery-4.1.0-1.fm1_10.git.56.4380f1d.git.56.4380f1d.git.56.4380f1d.el7.noarch
foreman-release-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
foreman-libvirt-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
foreman-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch


Files

discovery_success.png View discovery_success.png 23.6 KB discovered host successfully Sachin Ghai, 09/24/2015 03:23 AM

Related issues 1 (0 open1 closed)

Related to Discovery - Tracker #10294: PXEless discovery featureClosedLukas Zapletal04/28/2015

Actions
Actions

Also available in: Atom PDF