Just updated to Foreman 1.0 to see if this issue still existed from the RC
releases, and it does. When I clone a host I get the error…
"private method `chomp' called for nil:NilClass"
This is the full tracedump…
Started GET "/hosts/c0231.brazos.tamu.edu/clone" for 165.91.140.5 at Wed
Jul 25 18:32:06 -0500 2012
Processing by HostsController#clone as HTML
Parameters: {"id"=>"c0231.brazos.tamu.edu"}
User Load (0.1ms) SELECT users
.* FROM users
WHERE users
.id
= 2
LIMIT 1
Setting current user thread-local variable to treydock
Setting Load (0.1ms) SELECT settings
.* FROM settings
WHERE
settings
.name
= 'authorize_login_delegation' ORDER BY
LOWER(settings.name) LIMIT 1
CACHE (0.0ms) SELECT settings
.* FROM settings
WHERE
settings
.name
= 'authorize_login_delegation' ORDER BY
LOWER(settings.name) LIMIT 1
Setting Load (0.1ms) SELECT settings
.* FROM settings
WHERE
settings
.name
= 'idle_timeout' ORDER BY LOWER(settings.name) LIMIT 1
Host Load (0.2ms) SELECT hosts
.* FROM hosts
WHERE hosts
.name
=
'c0231.brazos.tamu.edu' LIMIT 1
Puppetclass Load (0.1ms) SELECT puppetclasses
.* FROM puppetclasses
INNER JOIN host_classes
ON puppetclasses
.id =
host_classes
.puppetclass_id WHERE ((host_classes
.host_id = 89)) ORDER
BY LOWER(puppetclasses.name)
SQL (0.0ms) BEGIN
SQL (0.0ms) COMMIT
HostParameter Load (0.0ms) SELECT parameters
.* FROM parameters
WHERE
parameters
.type
= 'HostParameter' AND (parameters
.reference_id = 89)
SQL (0.1ms) BEGIN
SQL (0.0ms) COMMIT
SQL (0.0ms) BEGIN
SQL (0.0ms) COMMIT
Environment Load (0.1ms) SELECT environments
.* FROM environments
WHERE environments
.id
= 5 ORDER BY LOWER(environments.name) LIMIT 1
Architecture Load (0.1ms) SELECT architectures
.* FROM architectures
WHERE architectures
.id
= 1 LIMIT 1
Domain Load (0.1ms) SELECT domains
.* FROM domains
WHERE
domains
.id
= 3 ORDER BY LOWER(domains.name) LIMIT 1
Operatingsystem Load (0.1ms) SELECT operatingsystems
.* FROM
operatingsystems
WHERE operatingsystems
.id
= 4 ORDER BY
LOWER(operatingsystems.name) LIMIT 1
Medium Load (0.1ms) SELECT media
.* FROM media
WHERE media
.id
=
11 ORDER BY LOWER(media.name) LIMIT 1
Hostgroup Load (0.1ms) SELECT hostgroups
.* FROM hostgroups
WHERE
hostgroups
.id
= 22 LIMIT 1
CACHE (0.0ms) SELECT environments
.* FROM environments
WHERE
environments
.id
= 5 ORDER BY LOWER(environments.name) LIMIT 1
CACHE (0.0ms) SELECT domains
.* FROM domains
WHERE domains
.id
= 3
ORDER BY LOWER(domains.name) LIMIT 1
SmartProxy Load (0.1ms) SELECT smart_proxies
.* FROM smart_proxies
WHERE smart_proxies
.id
= 3 ORDER BY LOWER(smart_proxies.name) LIMIT 1
CACHE (0.0ms) SELECT smart_proxies
.* FROM smart_proxies
WHERE
smart_proxies
.id
= 3 ORDER BY LOWER(smart_proxies.name) LIMIT 1
CACHE (0.0ms) SELECT operatingsystems
.* FROM operatingsystems
WHERE
operatingsystems
.id
= 4 ORDER BY LOWER(operatingsystems.name) LIMIT 1
CACHE (0.0ms) SELECT media
.* FROM media
WHERE media
.id
= 11
ORDER BY LOWER(media.name) LIMIT 1
CACHE (0.0ms) SELECT architectures
.* FROM architectures
WHERE
architectures
.id
= 1 LIMIT 1
Ptable Load (0.1ms) SELECT ptables
.* FROM ptables
WHERE
ptables
.id
= 15 ORDER BY LOWER(ptables.name) LIMIT 1
Subnet Load (0.1ms) SELECT subnets
.* FROM subnets
WHERE
subnets
.id
= 11 ORDER BY priority LIMIT 1
CACHE (0.0ms) SELECT users
.* FROM users
WHERE users
.id
= 2 LIMIT
1
Setting Load (0.1ms) SELECT settings
.* FROM settings
WHERE
settings
.name
= 'use_uuid_for_certificates' ORDER BY
LOWER(settings.name) LIMIT 1
SQL (0.1ms) SELECT 1 FROM parameters
WHERE parameters
.type
=
'HostParameter' AND parameters
.reference_id
IS NULL AND
(parameters
.name
= BINARY 'ib_ip_address') LIMIT 1
SQL (0.1ms) SELECT 1 FROM parameters
WHERE parameters
.type
=
'HostParameter' AND parameters
.reference_id
IS NULL AND
(parameters
.name
= BINARY 'mgmt_ip_address') LIMIT 1
SQL (0.2ms) SELECT 1 FROM hosts
WHERE (hosts
.name
IS NULL) LIMIT 1
SQL (3.9ms) SELECT 1 FROM hosts
WHERE (hosts
.ip
IS NULL) LIMIT 1
SQL (0.2ms) SELECT 1 FROM hosts
WHERE (hosts
.mac
IS NULL) LIMIT 1
CACHE (0.0ms) SELECT smart_proxies
.* FROM smart_proxies
WHERE
smart_proxies
.id
= 3 ORDER BY LOWER(smart_proxies.name) LIMIT 1
ConfigTemplate Load (0.1ms) SELECT config_templates
.* FROM
config_templates
INNER JOIN config_templates_operatingsystems
ON
config_templates_operatingsystems
.config_template_id
=
config_templates
.id
INNER JOIN operatingsystems
ON
operatingsystems
.id
=
config_templates_operatingsystems
.operatingsystem_id
INNER JOIN
template_kinds
ON template_kinds
.id
=
config_templates
.template_kind_id
INNER JOIN template_combinations
ON
config_templates
.id
= template_combinations
.config_template_id
INNER JOIN hostgroups
ON hostgroups
.id
=
template_combinations
.hostgroup_id
INNER JOIN template_combinations
environments_config_templates_join
ON config_templates
.id
=
environments_config_templates_join
.config_template_id
INNER JOIN
environments
ON environments
.id
=
environments_config_templates_join
.environment_id
WHERE
template_kinds
.name
= 'PXELinux' AND operatingsystems
.id
= 4 AND
environments
.id
= 5 AND hostgroups
.id
= 22 ORDER BY
LOWER(config_templates.name) LIMIT 1
ConfigTemplate Load (0.1ms) SELECT config_templates
.* FROM
config_templates
INNER JOIN config_templates_operatingsystems
ON
config_templates_operatingsystems
.config_template_id
=
config_templates
.id
INNER JOIN operatingsystems
ON
operatingsystems
.id
=
config_templates_operatingsystems
.operatingsystem_id
INNER JOIN
template_kinds
ON template_kinds
.id
=
config_templates
.template_kind_id
INNER JOIN template_combinations
ON
config_templates
.id
= template_combinations
.config_template_id
INNER JOIN hostgroups
ON hostgroups
.id
=
template_combinations
.hostgroup_id
WHERE template_kinds
.name
=
'PXELinux' AND operatingsystems
.id
= 4 AND hostgroups
.id
= 22 ORDER
BY LOWER(config_templates.name) LIMIT 1
ConfigTemplate Load (0.1ms) SELECT config_templates
.* FROM
config_templates
INNER JOIN config_templates_operatingsystems
ON
config_templates_operatingsystems
.config_template_id
=
config_templates
.id
INNER JOIN operatingsystems
ON
operatingsystems
.id
=
config_templates_operatingsystems
.operatingsystem_id
INNER JOIN
template_kinds
ON template_kinds
.id
=
config_templates
.template_kind_id
INNER JOIN template_combinations
ON
config_templates
.id
= template_combinations
.config_template_id
INNER JOIN environments
ON environments
.id
=
template_combinations
.environment_id
WHERE template_kinds
.name
=
'PXELinux' AND operatingsystems
.id
= 4 AND environments
.id
= 5
ORDER BY LOWER(config_templates.name) LIMIT 1
ConfigTemplate Load (0.1ms) SELECT config_templates
.* FROM
config_templates
INNER JOIN config_templates_operatingsystems
ON
config_templates_operatingsystems
.config_template_id
=
config_templates
.id
INNER JOIN operatingsystems
ON
operatingsystems
.id
=
config_templates_operatingsystems
.operatingsystem_id
INNER JOIN
template_kinds
ON template_kinds
.id
=
config_templates
.template_kind_id
INNER JOIN os_default_templates
ON
os_default_templates
.config_template_id
= config_templates
.id
WHERE
template_kinds
.name
= 'PXELinux' AND operatingsystems
.id
= 4 AND
os_default_templates
.operatingsystem_id
= 4 ORDER BY
LOWER(config_templates.name) LIMIT 1
Setting Load (0.1ms) SELECT settings
.* FROM settings
WHERE
settings
.name
= 'manage_puppetca' ORDER BY LOWER(settings.name) LIMIT 1
SQL (0.1ms) SELECT 1 FROM ptables
INNER JOIN
operatingsystems_ptables
ON ptables
.id =
operatingsystems_ptables
.ptable_id WHERE ptables
.id
= 15 AND
(operatingsystems_ptables
.operatingsystem_id = 4 ) ORDER BY
LOWER(ptables.name) LIMIT 1
SQL (0.1ms) SELECT 1 FROM media
INNER JOIN media_operatingsystems
ON
media
.id = media_operatingsystems
.medium_id WHERE media
.id
= 11 AND
(media_operatingsystems
.operatingsystem_id = 4 ) ORDER BY
LOWER(media.name) LIMIT 1
SQL (0.1ms) SELECT 1 FROM architectures
INNER JOIN
architectures_operatingsystems
ON architectures
.id =
architectures_operatingsystems
.architecture_id WHERE architectures
.id
= 1 AND (architectures_operatingsystems
.operatingsystem_id = 4 ) LIMIT 1
Rendered hosts/_progress.erb (0.5ms)
Hypervisor Load (0.1ms) SELECT hypervisors
.* FROM hypervisors
ORDER
BY LOWER(hypervisors.name) LIMIT 1
Rendered hosts/_form.html.erb (11.0ms)
Rendered hosts/new.html.erb within layouts/application (12.7ms)
Operation FAILED: private method chomp' called for nil:NilClass /usr/share/foreman/app/models/host.rb:178:in
shortname'
/usr/share/foreman/app/helpers/hosts_helper.rb:150:in name_field' /usr/share/foreman/app/views/hosts/_form.html.erb:27:in
_app_views_hosts__form_html_erb___956986859_69839923966320_1238110'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/capture_helper.rb:40:in
capture' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/capture_helper.rb:172:in
with_output_buffer'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/capture_helper.rb:40:in
capture' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/form_helper.rb:545:in
fields_for'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/helpers/form_helper.rb:320:in
form_for' /usr/share/foreman/app/helpers/layout_helper.rb:147:in
form_for'
/usr/share/foreman/app/views/hosts/_form.html.erb:4:in
_app_views_hosts__form_html_erb___956986859_69839923966320_1238110' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:in
send'
/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:in
instrument'
/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/partials.rb:333:in
render_partial'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/partials.rb:262:in
render' /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:in
instrument' /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/partials.rb:260:in
render' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/partials.rb:378:in
_render_partial'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/render/rendering.rb:22:in
render' /usr/share/foreman/app/views/hosts/new.html.erb:3:in
_app_views_hosts_new_html_erb__1128575332_69839923978040_0'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_view/template.rb:135:in
send' /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:in
instrument' /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:in
instrument' /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:in
render_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:in
render_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:in
render' /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:in
ms' /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:in
ms' /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:in
cleanup_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:in
render' /usr/share/foreman/app/controllers/hosts_controller.rb:82:in
clone'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:4:in
send_action' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.15/lib/action_controller/metal/implicit_render.rb:4:in
send_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:in
process_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:471:in
_run__1670334538__process_action__1087604927__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:221:in
_conditional_callback_around_3108' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:331:in
around'
/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_3108' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/callbacks.rb:436:in
_run__1670334538__process_action__1087604927__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:in
run_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:in
process_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:in
instrument'
/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:in
instrument'
/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:in
process'
/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:in
dispatch'
/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:in
action'
/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:in
dispatch'
/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:in
call'
/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:75:in
optimized_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:in
call'
/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/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:in
call' /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/methodoverride.rb:24:in
call'
/usr/lib/ruby/gems