Bug #11941
closedError: 500 Internal Server Error on accessing discovered_host from webUI
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
Updated by Sachin Ghai over 9 years ago
- Related to Tracker #10294: PXEless discovery feature added
Updated by Sachin Ghai over 9 years ago
One thing forgot to mention that I was trying discovery via PXE/DHCP.
Updated by Dominic Cleal over 9 years ago
- Description updated (diff)
Use pre tags or indentation to prevent formatting.
Updated by Dominic Cleal over 9 years ago
Looks like Foreman hasn't been restarted since installing Discovery 4.1.0, since the view search page contains Discovery 4.0.0. touch ~foreman/tmp/restart.txt or restart httpd.
Updated by Sachin Ghai over 9 years ago
Ah.. yeah. That was it. Now I can see the host. Thanks. Closing this issue. And thank you for updating the formatting.
Updated by Lukas Zapletal over 9 years ago
For the record, the v3.0+ image is compatible with Foreman Discovery 4.0 except for booting. Can you test this as well? This error is weird, looks like your instance was not restarted or something. The facts upload API has not changed. Only reboot wont work.