Bug #4512
openforeman_url in settings.yaml causes DB migration failure
Description
System info:
Centos 6.5
2.6.32-358.23.2.el6.x86_64
puppetserver :3.4.3-1
ruby 131
upgrade went without error. When I attempt to browse hosts I get:
Warning!
undefined local variable or method `description' for #
with a stack trace of:
NameError
undefined local variable or method `description' for #<Redhat:0x007f98ac9ec3d8>
app/models/operatingsystem.rb:119:in `to_label'
app/views/hosts/_list.html.erb:20:in `block in app_views_hosts_list_html_erb__1802655188597566344_69250700'
app/views/hosts/_list.html.erb:14:in `_app_views_hosts__list_html_erb__1802655188597566344_69250700'
app/views/hosts/index.html.erb:4:in `_app_views_hosts_index_html_erb___969333330980872441_69058260'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
production log dumps out:
Started GET "/hosts?search=last_report+%3C+%2235+minutes+ago%22+and+status.enabled+%3D+true" for 10.1.16.42 at 2014-03-01 20:51:30 -0500
Processing by HostsController#index as HTML
Parameters: {"search"=>"last_report < \"35 minutes ago\" and status.enabled = true"}
Rendered hosts/_list.html.erb (8.7ms)
Rendered hosts/index.html.erb within layouts/application (12.5ms)
Operation FAILED: undefined local variable or method `description' for #<Redhat:0x007f26d50040d0>
Rendered common/500.html.erb within layouts/application (4.1ms)
Rendered layouts/base.html.erb (1.4ms)
Completed 500 Internal Server Error in 45ms (Views: 6.8ms | ActiveRecord: 0.0ms)