Route error creating new provision template

I'm creating some new PXELinux provisioning templates and the template is
created but when redirected to config_templates#index I get a route error…

No route matches {:controller=>"config_templates", :action=>"edit",
:id=>"PXELinux - ESXi w/ Kickstart"}

Here is the log entry for both the creation of the template then the error
that follows after creation

Started POST "/config_templates" for 165.91.140.5 at Thu Aug 16 16:34:01
-0500 2012
Processing by ConfigTemplatesController#create as HTML
Parameters: {"utf8"=>"✓", "keybinding"=>"Default", "commit"=>"Submit",
"config_template"=>{"template"=>"LABEL esxi-ks\r\n MENU LABEL ESXi 4.1U2
w/ Kickstart\r\n KERNEL esxi/mboot.c32\r\n append esxi/vmkboot.gz ks=<%=
foreman_url(&quot;provision&quot;)%> — esxi/vmkernel.gz — esxi/sys.vgz —
esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz —
esxi/image.tgz\r\n ", "operatingsystem_ids"=>["", "", "", "", "", "", "",
"", "", "", ""], "audit_comment"=>"", "name"=>"PXELinux - ESXi w/
Kickstart", "template_kind_id"=>"1", "snippet"=>"0"},
"authenticity_token"=>"Mplt551chynXGGa++MfeQK9EtytexKbBiw4Z/V/0VlE="}
User Load (0.2ms) SELECT users.* FROM users WHERE users.id = 2
LIMIT 1
Setting current user thread-local variable to treydock
SQL (0.1ms) BEGIN
SQL (0.1ms) COMMIT
SQL (0.0ms) BEGIN
SQL (0.3ms) SELECT 1 FROM config_templates WHERE
(config_templates.name = BINARY 'PXELinux - ESXi w/ Kickstart') LIMIT 1
SQL (0.5ms) describe config_templates
AREL (0.3ms) INSERT INTO config_templates (snippet, name,
updated_at, template_kind_id, template, created_at) VALUES (0,
'PXELinux - ESXi w/ Kickstart', '2012-08-16 21:34:01', 1, 'LABEL esxi-ks\n
MENU LABEL ESXi 4.1U2 w/ Kickstart\n KERNEL esxi/mboot.c32\n append
esxi/vmkboot.gz ks=<%= foreman_url(&quot;provision&quot;)%> — esxi/vmkernel.gz
— esxi/sys.vgz — esxi/cim.vgz — esxi/ienviron.vgz —
esxi/install.vgz — esxi/image.tgz\n ', '2012-08-16 21:34:01')
ConfigTemplate Load (0.4ms) SELECT config_templates.* FROM
config_templates WHERE config_templates.id = 45 ORDER BY
LOWER(config_templates.name) LIMIT 1
SQL (0.3ms) SELECT MAX(audits.version) AS max_id FROM audits WHERE
audits.auditable_id = 45 AND audits.auditable_type =
'ConfigTemplate'
SQL (0.7ms) describe audits
AREL (0.2ms) INSERT INTO audits (auditable_type, associated_name,
action, associated_type, user_id, remote_address, version,
created_at, comment, associated_id, auditable_name, username,
audited_changes, auditable_id, user_type) VALUES ('ConfigTemplate',
NULL, 'create', NULL, NULL, '165.91.140.5', 1, '2012-08-16 21:34:01', '',
NULL, 'PXELinux - ESXi w/ Kickstart', 'Trey Dockendorf', '— \n template:
&quot;LABEL esxi-ks\n MENU LABEL ESXi 4.1U2 w/ Kickstart\n KERNEL
esxi/mboot.c32\n append esxi/vmkboot.gz ks=<%=
foreman_url(\&quot;provision\&quot;)%> — esxi/vmkernel.gz — esxi/sys.vgz —
esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz —
esxi/image.tgz\n &quot;\n name: PXELinux - ESXi w/ Kickstart\n
template_kind_id: 1\n snippet: false', 45, NULL)
SQL (410.4ms) COMMIT
Redirected to https://dc-foreman.tamu.edu/config_templates
Completed 302 Found in 451ms

Started GET "/config_templates" for 165.91.140.5 at Thu Aug 16 16:34:02
-0500 2012
Processing by ConfigTemplatesController#index as HTML
User Load (0.1ms) SELECT users.* FROM users WHERE users.id = 2
LIMIT 1
Setting current user thread-local variable to treydock
ConfigTemplate Load (0.6ms) SELECT config_templates.* FROM
config_templates ORDER BY LOWER(config_templates.name) LIMIT 1
ConfigTemplate Load (1.6ms) SELECT config_templates.* FROM
config_templates ORDER BY LOWER(config_templates.name),
config_templates.name ASC LIMIT 50 OFFSET 0
TemplateKind Load (0.1ms) SELECT template_kinds.* FROM
template_kinds WHERE (template_kinds.id IN (1,2,4,6,5,3))
TemplateCombination Load (0.3ms) SELECT template_combinations.* FROM
template_combinations WHERE (template_combinations.config_template_id
IN
(20,21,32,39,19,29,37,40,38,11,13,31,14,16,15,43,4,3,1,41,23,28,30,26,5,6,2,36,8,7,12,42,45,25,9,24,10,35,34,18,17))
Environment Load (0.1ms) SELECT environments.* FROM environments
WHERE (environments.id IN (5,2))
Hostgroup Load (0.1ms) SELECT hostgroups.* FROM hostgroups WHERE
(hostgroups.id IN (3,11,20))
Rendered config_templates/index.html.erb within layouts/application (89.0ms)
Operation FAILED: No route matches {:controller=>"config_templates",
:action=>"edit", :id=>"PXELinux - ESXi w/ Kickstart"}
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:431:in
raise_routing_error&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:404:ingenerate'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:460:in
generate&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:488:inurl_for'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/url_for.rb:131:in
url_for&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/url_helper.rb:99:inurl_for'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/url_helper.rb:236:in
link_to&#39; /usr/share/foreman/app/helpers/application_helper.rb:95:inlink_to_if_authorized'
/usr/share/foreman/app/views/config_templates/index.html.erb:20:in
_app_views_config_templates_index_html_erb___1741073052_70090509550740_0&#39; /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:ineach'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:in
__send__&#39; /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:ineach'
/usr/share/foreman/app/views/config_templates/index.html.erb:18:in
_app_views_config_templates_index_html_erb___1741073052_70090509550740_0&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:insend'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:in
render&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:54:ininstrument'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:127:in
render&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:59:in_render_template'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:in
instrument&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications/instrumenter.rb:21:ininstrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:in
instrument&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:56:in_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:26:in
render&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:115:in_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:109:in
render_to_body&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/renderers.rb:47:inrender_to_body'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/compatibility.rb:55:in
render_to_body&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:102:inrender_to_string'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:93:in
render&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rendering.rb:17:inrender'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:40:in
render&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/core_ext/benchmark.rb:5:inms'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/core_ext/benchmark.rb:5:inms'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:40:in
render&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:78:incleanup_view_runtime'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railties/controller_runtime.rb:15:in
cleanup_view_runtime&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:39:inrender'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:10:in
default_render&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:5:insend_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/base.rb:150:in
process_action&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rendering.rb:11:inprocess_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/callbacks.rb:18:in
process_action&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:474:in_run__2141631504__process_action__1744553292__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in
_conditional_callback_around_3211&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:inaround'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in
send&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in_callback_around_760'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:220:in
_conditional_callback_around_3211&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:473:in_run__2141631504__process_action__1744553292__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in
_conditional_callback_around_3210&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:inaround'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in
send&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in_callback_around_13'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:220:in
_conditional_callback_around_3210&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:436:in_run__2141631504__process_action__1744553292__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:410:in
send&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:410:in_run_process_action_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:94:in
send&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:94:inrun_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/callbacks.rb:17:in
process_action&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rescue.rb:17:inprocess_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:30:in
process_action&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:ininstrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications/instrumenter.rb:21:in
instrument&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:ininstrument'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:29:in
process_action&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/base.rb:119:inprocess'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:41:in
process&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal.rb:138:indispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal.rb:178:inaction'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:68:in
call&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:68:indispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:33:in
call&#39; /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:incall'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in
recognize&#39; /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:96:inoptimized_each'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in
recognize&#39; /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:499:in
call&#39; /usr/lib/ruby/gems/1.8/gems/apipie-rails-0.0.9/lib/apipie/static_dispatcher.rb:57:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/head.rb:14:incall'
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/methodoverride.rb:24:in
call&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/params_parser.rb:21:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/flash.rb:182:in
call&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/session/abstract_store.rb:149:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/cookies.rb:302:in
call&#39; /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:32:incall'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
cache&#39; /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:12:incache'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:31:in
call&#39; /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/callbacks.rb:46:in
call&#39; /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:416:in_run_call_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/callbacks.rb:44:in
call&#39; /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/sendfile.rb:106:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/remote_ip.rb:48:in
call&#39; /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/show_exceptions.rb:47:incall'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/rack/logger.rb:13:in
call&#39; /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/runtime.rb:17:incall'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/cache/strategy/local_cache.rb:72:in
call&#39; /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:incall'
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:in synchronize&#39; /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:incall'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/static.rb:30:in
call&#39; /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:168:incall'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in
send&#39; /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:inmethod_missing'
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:47:in call&#39; /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:41:ineach'
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:41:in call&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_request_handler.rb:513:in
accept_and_process_next_request&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:206:in
start_request_handler&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:171:insend'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:171:in
handle_spawn_application&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/utils.rb:479:insafe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:166:in
handle_spawn_application&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:357:insend'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:180:in
start&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:129:instart'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rack_application&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:246:in
spawn_rack_application&#39; /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb:82:insync

my guess would be the use of illegal characters.

Maybe rename to pxelinux-esxi_w_kickstart?

Thanks,

Corey Osman
corey@logicminds.biz

Green IT and Data Center Automation Specialist

··· On Aug 16, 2012, at 3:02 PM, treydock wrote:

I’m creating some new PXELinux provisioning templates and the template is created but when redirected to config_templates#index I get a route error…

No route matches {:controller=>“config_templates”, :action=>“edit”, :id=>“PXELinux - ESXi w/ Kickstart”}

Here is the log entry for both the creation of the template then the error that follows after creation

Started POST “/config_templates” for 165.91.140.5 at Thu Aug 16 16:34:01 -0500 2012
Processing by ConfigTemplatesController#create as HTML
Parameters: {“utf8”=>“✓”, “keybinding”=>“Default”, “commit”=>“Submit”, “config_template”=>{“template”=>“LABEL esxi-ks\r\n MENU LABEL ESXi 4.1U2 w/ Kickstart\r\n KERNEL esxi/mboot.c32\r\n append esxi/vmkboot.gz ks=<%= foreman_url(“provision”)%> — esxi/vmkernel.gz — esxi/sys.vgz — esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz — esxi/image.tgz\r\n “, “operatingsystem_ids”=>[””, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”], “audit_comment”=>"", “name”=>“PXELinux - ESXi w/ Kickstart”, “template_kind_id”=>“1”, “snippet”=>“0”}, “authenticity_token”=>“Mplt551chynXGGa++MfeQK9EtytexKbBiw4Z/V/0VlE=”}
User Load (0.2ms) SELECT users.* FROM users WHERE users.id = 2 LIMIT 1
Setting current user thread-local variable to treydock
SQL (0.1ms) BEGIN
SQL (0.1ms) COMMIT
SQL (0.0ms) BEGIN
SQL (0.3ms) SELECT 1 FROM config_templates WHERE (config_templates.name = BINARY ‘PXELinux - ESXi w/ Kickstart’) LIMIT 1
SQL (0.5ms) describe config_templates
AREL (0.3ms) INSERT INTO config_templates (snippet, name, updated_at, template_kind_id, template, created_at) VALUES (0, ‘PXELinux - ESXi w/ Kickstart’, ‘2012-08-16 21:34:01’, 1, 'LABEL esxi-ks\n MENU LABEL ESXi 4.1U2 w/ Kickstart\n KERNEL esxi/mboot.c32\n append esxi/vmkboot.gz ks=<%= foreman_url(“provision”)%> — esxi/vmkernel.gz — esxi/sys.vgz — esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz — esxi/image.tgz\n ', ‘2012-08-16 21:34:01’)
ConfigTemplate Load (0.4ms) SELECT config_templates.* FROM config_templates WHERE config_templates.id = 45 ORDER BY LOWER(config_templates.name) LIMIT 1
SQL (0.3ms) SELECT MAX(audits.version) AS max_id FROM audits WHERE audits.auditable_id = 45 AND audits.auditable_type = 'ConfigTemplate’
SQL (0.7ms) describe audits
AREL (0.2ms) INSERT INTO audits (auditable_type, associated_name, action, associated_type, user_id, remote_address, version, created_at, comment, associated_id, auditable_name, username, audited_changes, auditable_id, user_type) VALUES (‘ConfigTemplate’, NULL, ‘create’, NULL, NULL, ‘165.91.140.5’, 1, ‘2012-08-16 21:34:01’, ‘’, NULL, ‘PXELinux - ESXi w/ Kickstart’, ‘Trey Dockendorf’, ‘— \n template: "LABEL esxi-ks\n MENU LABEL ESXi 4.1U2 w/ Kickstart\n KERNEL esxi/mboot.c32\n append esxi/vmkboot.gz ks=<%= foreman_url(\“provision\”)%> — esxi/vmkernel.gz — esxi/sys.vgz — esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz — esxi/image.tgz\n "\n name: PXELinux - ESXi w/ Kickstart\n template_kind_id: 1\n snippet: false’, 45, NULL)
SQL (410.4ms) COMMIT
Redirected to https://dc-foreman.tamu.edu/config_templates
Completed 302 Found in 451ms

Started GET “/config_templates” for 165.91.140.5 at Thu Aug 16 16:34:02 -0500 2012
Processing by ConfigTemplatesController#index as HTML
User Load (0.1ms) SELECT users.* FROM users WHERE users.id = 2 LIMIT 1
Setting current user thread-local variable to treydock
ConfigTemplate Load (0.6ms) SELECT config_templates.* FROM config_templates ORDER BY LOWER(config_templates.name) LIMIT 1
ConfigTemplate Load (1.6ms) SELECT config_templates.* FROM config_templates ORDER BY LOWER(config_templates.name), config_templates.name ASC LIMIT 50 OFFSET 0
TemplateKind Load (0.1ms) SELECT template_kinds.* FROM template_kinds WHERE (template_kinds.id IN (1,2,4,6,5,3))
TemplateCombination Load (0.3ms) SELECT template_combinations.* FROM template_combinations WHERE (template_combinations.config_template_id IN (20,21,32,39,19,29,37,40,38,11,13,31,14,16,15,43,4,3,1,41,23,28,30,26,5,6,2,36,8,7,12,42,45,25,9,24,10,35,34,18,17))
Environment Load (0.1ms) SELECT environments.* FROM environments WHERE (environments.id IN (5,2))
Hostgroup Load (0.1ms) SELECT hostgroups.* FROM hostgroups WHERE (hostgroups.id IN (3,11,20))
Rendered config_templates/index.html.erb within layouts/application (89.0ms)
Operation FAILED: No route matches {:controller=>“config_templates”, :action=>“edit”, :id=>“PXELinux - ESXi w/ Kickstart”}
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:431:in raise_routing_error' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:404:ingenerate’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:460:in generate' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:488:inurl_for’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/url_for.rb:131:in url_for' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/url_helper.rb:99:inurl_for’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/url_helper.rb:236:in link_to' /usr/share/foreman/app/helpers/application_helper.rb:95:inlink_to_if_authorized’
/usr/share/foreman/app/views/config_templates/index.html.erb:20:in _app_views_config_templates_index_html_erb___1741073052_70090509550740_0' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:ineach’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:in __send__' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:ineach’
/usr/share/foreman/app/views/config_templates/index.html.erb:18:in _app_views_config_templates_index_html_erb___1741073052_70090509550740_0' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:in render' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:54:ininstrument’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:127:in render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:59:in_render_template’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:in instrument' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications/instrumenter.rb:21:ininstrument’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:in instrument' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:56:in_render_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:26:in render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:115:in_render_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:109:in render_to_body' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/renderers.rb:47:inrender_to_body’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/compatibility.rb:55:in render_to_body' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:102:inrender_to_string’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:93:in render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rendering.rb:17:inrender’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:40:in render' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/core_ext/benchmark.rb:5:inms’
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/core_ext/benchmark.rb:5:inms’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:40:in render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:78:incleanup_view_runtime’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railties/controller_runtime.rb:15:in cleanup_view_runtime' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:39:inrender’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:10:in default_render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:5:insend_action’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/base.rb:150:in process_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rendering.rb:11:inprocess_action’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/callbacks.rb:18:in process_action' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:474:in_run__2141631504__process_action__1744553292__callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in _conditional_callback_around_3211' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:inaround’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in_callback_around_760’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:220:in _conditional_callback_around_3211' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:473:in_run__2141631504__process_action__1744553292__callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in _conditional_callback_around_3210' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:inaround’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in_callback_around_13’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:220:in _conditional_callback_around_3210' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:436:in_run__2141631504__process_action__1744553292__callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:410:in send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:410:in_run_process_action_callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:94:in send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:94:inrun_callbacks’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/callbacks.rb:17:in process_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rescue.rb:17:inprocess_action’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:30:in process_action' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:ininstrument’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications/instrumenter.rb:21:in instrument' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:ininstrument’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:29:in process_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/base.rb:119:inprocess’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:41:in process' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal.rb:138:indispatch’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rack_delegation.rb:14:in dispatch' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal.rb:178:inaction’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:68:in call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:68:indispatch’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:33:in call' /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:incall’
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in recognize' /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:96:inoptimized_each’
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in recognize' /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:499:in call' /usr/lib/ruby/gems/1.8/gems/apipie-rails-0.0.9/lib/apipie/static_dispatcher.rb:57:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/best_standards_support.rb:17:in call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/head.rb:14:incall’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/methodoverride.rb:24:in call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/params_parser.rb:21:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/flash.rb:182:in call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/session/abstract_store.rb:149:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/cookies.rb:302:in call' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:32:incall’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in cache' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:12:incache’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:31:in call' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/callbacks.rb:46:in call' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:416:in_run_call_callbacks’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/callbacks.rb:44:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/sendfile.rb:106:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/remote_ip.rb:48:in call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/show_exceptions.rb:47:incall’
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/rack/logger.rb:13:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/runtime.rb:17:incall’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/cache/strategy/local_cache.rb:72:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:incall’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:in synchronize' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/static.rb:30:in call' /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:168:incall’
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in send' /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:inmethod_missing’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:47:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:41:ineach’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:41:in call' /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request’
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request’
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12/lib/phusion_passenger/

+1 to what Corey said. It seems like we should escape the name field. I've
opened a ticket at Bug #1827: Template names to / (i.e. w/) cause issues with routes based on ID - Foreman and will work on this
tomorrow.

-Sam

··· On Thu, Aug 16, 2012 at 7:10 PM, Corey Osman wrote:

my guess would be the use of illegal characters.

Maybe rename to pxelinux-esxi_w_kickstart?

Thanks,

Corey Osman
corey@logicminds.biz

Green IT and Data Center Automation Specialist

On Aug 16, 2012, at 3:02 PM, treydock treydock@gmail.com wrote:

I’m creating some new PXELinux provisioning templates and the template is
created but when redirected to config_templates#index I get a route error…

No route matches {:controller=>“config_templates”, :action=>“edit”,
:id=>“PXELinux - ESXi w/ Kickstart”}

Here is the log entry for both the creation of the template then the error
that follows after creation

Started POST “/config_templates” for 165.91.140.5 at Thu Aug 16 16:34:01
-0500 2012
Processing by ConfigTemplatesController#create as HTML
Parameters: {“utf8”=>“✓”, “keybinding”=>“Default”, “commit”=>“Submit”,
“config_template”=>{“template”=>“LABEL esxi-ks\r\n MENU LABEL ESXi 4.1U2
w/ Kickstart\r\n KERNEL esxi/mboot.c32\r\n append esxi/vmkboot.gz ks=<%=
foreman_url(“provision”)%> — esxi/vmkernel.gz — esxi/sys.vgz —
esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz —
esxi/image.tgz\r\n “, “operatingsystem_ids”=>[””, “”, “”, “”, “”, “”, “”,
"", “”, “”, “”], “audit_comment”=>"", “name”=>“PXELinux - ESXi w/
Kickstart”, “template_kind_id”=>“1”, “snippet”=>“0”},
“authenticity_token”=>“Mplt551chynXGGa++MfeQK9EtytexKbBiw4Z/V/0VlE=”}
User Load (0.2ms) SELECT users.* FROM users WHERE users.id = 2
LIMIT 1
Setting current user thread-local variable to treydock
SQL (0.1ms) BEGIN
SQL (0.1ms) COMMIT
SQL (0.0ms) BEGIN
SQL (0.3ms) SELECT 1 FROM config_templates WHERE
(config_templates.name = BINARY ‘PXELinux - ESXi w/ Kickstart’) LIMIT 1
SQL (0.5ms) describe config_templates
AREL (0.3ms) INSERT INTO config_templates (snippet, name,
updated_at, template_kind_id, template, created_at) VALUES (0,
‘PXELinux - ESXi w/ Kickstart’, ‘2012-08-16 21:34:01’, 1, 'LABEL esxi-ks\n
MENU LABEL ESXi 4.1U2 w/ Kickstart\n KERNEL esxi/mboot.c32\n append
esxi/vmkboot.gz ks=<%= foreman_url(“provision”)%> — esxi/vmkernel.gz
— esxi/sys.vgz — esxi/cim.vgz — esxi/ienviron.vgz —
esxi/install.vgz — esxi/image.tgz\n ', ‘2012-08-16 21:34:01’)
ConfigTemplate Load (0.4ms) SELECT config_templates.* FROM
config_templates WHERE config_templates.id = 45 ORDER BY LOWER(
config_templates.name) LIMIT 1
SQL (0.3ms) SELECT MAX(audits.version) AS max_id FROM audits
WHERE audits.auditable_id = 45 AND audits.auditable_type =
'ConfigTemplate’
SQL (0.7ms) describe audits
AREL (0.2ms) INSERT INTO audits (auditable_type, associated_name,
action, associated_type, user_id, remote_address, version,
created_at, comment, associated_id, auditable_name, username,
audited_changes, auditable_id, user_type) VALUES (‘ConfigTemplate’,
NULL, ‘create’, NULL, NULL, ‘165.91.140.5’, 1, ‘2012-08-16 21:34:01’, ‘’,
NULL, ‘PXELinux - ESXi w/ Kickstart’, ‘Trey Dockendorf’, ‘— \n template:
"LABEL esxi-ks\n MENU LABEL ESXi 4.1U2 w/ Kickstart\n KERNEL
esxi/mboot.c32\n append esxi/vmkboot.gz ks=<%=
foreman_url(\“provision\”)%> — esxi/vmkernel.gz — esxi/sys.vgz —
esxi/cim.vgz — esxi/ienviron.vgz — esxi/install.vgz —
esxi/image.tgz\n "\n name: PXELinux - ESXi w/ Kickstart\n
template_kind_id: 1\n snippet: false’, 45, NULL)
SQL (410.4ms) COMMIT
Redirected to https://dc-foreman.tamu.edu/config_templates
Completed 302 Found in 451ms

Started GET “/config_templates” for 165.91.140.5 at Thu Aug 16 16:34:02
-0500 2012
Processing by ConfigTemplatesController#index as HTML
User Load (0.1ms) SELECT users.* FROM users WHERE users.id = 2
LIMIT 1
Setting current user thread-local variable to treydock
ConfigTemplate Load (0.6ms) SELECT config_templates.* FROM
config_templates ORDER BY LOWER(config_templates.name) LIMIT 1
ConfigTemplate Load (1.6ms) SELECT config_templates.* FROM
config_templates ORDER BY LOWER(config_templates.name),
config_templates.name ASC LIMIT 50 OFFSET 0
TemplateKind Load (0.1ms) SELECT template_kinds.* FROM
template_kinds WHERE (template_kinds.id IN (1,2,4,6,5,3))
TemplateCombination Load (0.3ms) SELECT template_combinations.* FROM
template_combinations WHERE (template_combinations.config_template_id
IN
(20,21,32,39,19,29,37,40,38,11,13,31,14,16,15,43,4,3,1,41,23,28,30,26,5,6,2,36,8,7,12,42,45,25,9,24,10,35,34,18,17))
Environment Load (0.1ms) SELECT environments.* FROM environments
WHERE (environments.id IN (5,2))
Hostgroup Load (0.1ms) SELECT hostgroups.* FROM hostgroups WHERE
(hostgroups.id IN (3,11,20))
Rendered config_templates/index.html.erb within layouts/application
(89.0ms)
Operation FAILED: No route matches {:controller=>“config_templates”,
:action=>“edit”, :id=>“PXELinux - ESXi w/ Kickstart”}
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:431:in
raise_routing_error' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:404:ingenerate’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:460:in
generate' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:488:inurl_for’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/url_for.rb:131:in
url_for' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/url_helper.rb:99:inurl_for’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/url_helper.rb:236:in
link_to' /usr/share/foreman/app/helpers/application_helper.rb:95:inlink_to_if_authorized’
/usr/share/foreman/app/views/config_templates/index.html.erb:20:in
_app_views_config_templates_index_html_erb___1741073052_70090509550740_0' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:ineach’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:in
__send__' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/relation.rb:13:ineach’
/usr/share/foreman/app/views/config_templates/index.html.erb:18:in
_app_views_config_templates_index_html_erb___1741073052_70090509550740_0' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:in
render' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:54:ininstrument’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:127:in
render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:59:in_render_template’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:in
instrument' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications/instrumenter.rb:21:ininstrument’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:in
instrument' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:56:in_render_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:26:in
render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:115:in_render_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:109:in
render_to_body' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/renderers.rb:47:inrender_to_body’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/compatibility.rb:55:in
render_to_body' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:102:inrender_to_string’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:93:in
render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rendering.rb:17:inrender’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:40:in
render' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/core_ext/benchmark.rb:5:inms’
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/core_ext/benchmark.rb:5:inms’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:40:in
render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:78:incleanup_view_runtime’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railties/controller_runtime.rb:15:in
cleanup_view_runtime' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:39:inrender’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:10:in
default_render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:5:insend_action’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/base.rb:150:in
process_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rendering.rb:11:inprocess_action’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/callbacks.rb:18:in
process_action' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:474:in_run__2141631504__process_action__1744553292__callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in
_conditional_callback_around_3211' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:inaround’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in
send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in_callback_around_760’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:220:in
_conditional_callback_around_3211' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:473:in_run__2141631504__process_action__1744553292__callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in
_conditional_callback_around_3210' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:inaround’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in
send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:315:in_callback_around_13’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:220:in
_conditional_callback_around_3210' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:436:in_run__2141631504__process_action__1744553292__callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:410:in
send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:410:in_run_process_action_callbacks’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:94:in
send' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:94:inrun_callbacks’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/callbacks.rb:17:in
process_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rescue.rb:17:inprocess_action’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:30:in
process_action' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:ininstrument’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications/instrumenter.rb:21:in
instrument' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/notifications.rb:52:ininstrument’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/base.rb:119:inprocess’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/abstract_controller/rendering.rb:41:in
process' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal.rb:138:indispatch’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal.rb:178:inaction’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:68:in
call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:68:indispatch’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:33:in
call' /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:incall’
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in
recognize' /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:96:inoptimized_each’
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in
recognize' /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/routing/route_set.rb:499:in
call' /usr/lib/ruby/gems/1.8/gems/apipie-rails-0.0.9/lib/apipie/static_dispatcher.rb:57:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/head.rb:14:incall’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/methodoverride.rb:24:in
call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/params_parser.rb:21:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/flash.rb:182:in
call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/session/abstract_store.rb:149:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/cookies.rb:302:in
call' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:32:incall’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
cache' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:12:incache’
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/query_cache.rb:31:in
call' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/callbacks.rb:46:in
call' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:416:in_run_call_callbacks’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/callbacks.rb:44:in
call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/sendfile.rb:106:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/remote_ip.rb:48:in
call' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/show_exceptions.rb:47:incall’
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/rack/logger.rb:13:in
call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/runtime.rb:17:incall’
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/cache/strategy/local_cache.rb:72:in
call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:incall’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:in synchronize' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:incall’
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_dispatch/middleware/static.rb:30:in
call' /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:168:incall’
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in
send' /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:inmethod_missing’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:47:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:41:ineach’
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/urlmap.rb:41:in `call’
/usr/lib/ruby/gems/1.8/gems/passen