Foreman-1.0 - can't clone hosts

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:inshortname'
/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:inwith_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:infields_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:inform_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: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/partials.rb:333:inrender_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: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_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:inrender'
/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:inrender'
/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: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_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:inrender'
/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:inrender_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:inrender_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:inrender'
/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:inrender'
/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:inrealtime'
/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:inrender'
/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:incleanup_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:inclone'
/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: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: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: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_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: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:75: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/actionpack-3.0.15/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
/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:incall'
/usr/lib/ruby/gems

> 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) SELECTusers.* FROMusersWHEREusers.id= 2 > LIMIT 1 > Setting current user thread-local variable to treydock > Setting Load (0.1ms) SELECTsettings.* FROMsettingsWHERE >settings.name= 'authorize_login_delegation' ORDER BY LOWER( > settings.name) LIMIT 1 > CACHE (0.0ms) SELECTsettings.* FROMsettingsWHERE >settings.name= 'authorize_login_delegation' ORDER BY LOWER( > settings.name) LIMIT 1 > Setting Load (0.1ms) SELECTsettings.* FROMsettingsWHERE >settings.name= 'idle_timeout' ORDER BY LOWER(settings.name) LIMIT 1 > Host Load (0.2ms) SELECThosts.* FROMhostsWHEREhosts.name= ' > c0231.brazos.tamu.edu' LIMIT 1 > Puppetclass Load (0.1ms) SELECTpuppetclasses.* FROMpuppetclasses> INNER JOINhost_classesONpuppetclasses.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) SELECTparameters.* FROMparameters> WHEREparameters.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) SELECTenvironments.* FROMenvironments> WHEREenvironments.id= 5 ORDER BY LOWER(environments.name) LIMIT 1 > Architecture Load (0.1ms) SELECTarchitectures.* FROMarchitectures> WHEREarchitectures.id= 1 LIMIT 1 > Domain Load (0.1ms) SELECTdomains.* FROMdomainsWHERE >domains.id= 3 ORDER BY LOWER(domains.name) LIMIT 1 > Operatingsystem Load (0.1ms) SELECToperatingsystems.* FROM >operatingsystemsWHEREoperatingsystems.id= 4 ORDER BY LOWER( > operatingsystems.name) LIMIT 1 > Medium Load (0.1ms) SELECTmedia.* FROMmediaWHEREmedia.id= > 11 ORDER BY LOWER(media.name) LIMIT 1 > Hostgroup Load (0.1ms) SELECThostgroups.* FROMhostgroupsWHERE >hostgroups.id= 22 LIMIT 1 > CACHE (0.0ms) SELECTenvironments.* FROMenvironmentsWHERE >environments.id= 5 ORDER BY LOWER(environments.name) LIMIT 1 > CACHE (0.0ms) SELECTdomains.* FROMdomainsWHEREdomains.id= > 3 ORDER BY LOWER(domains.name) LIMIT 1 > SmartProxy Load (0.1ms) SELECTsmart_proxies.* FROMsmart_proxies> WHEREsmart_proxies.id= 3 ORDER BY LOWER(smart_proxies.name) LIMIT 1 > CACHE (0.0ms) SELECTsmart_proxies.* FROMsmart_proxiesWHERE >smart_proxies.id= 3 ORDER BY LOWER(smart_proxies.name) LIMIT 1 > CACHE (0.0ms) SELECToperatingsystems.* FROMoperatingsystemsWHERE >operatingsystems.id= 4 ORDER BY LOWER(operatingsystems.name) LIMIT 1 > CACHE (0.0ms) SELECTmedia.* FROMmediaWHEREmedia.id= 11 > ORDER BY LOWER(media.name) LIMIT 1 > CACHE (0.0ms) SELECTarchitectures.* FROMarchitecturesWHERE >architectures.id= 1 LIMIT 1 > Ptable Load (0.1ms) SELECTptables.* FROMptablesWHERE >ptables.id= 15 ORDER BY LOWER(ptables.name) LIMIT 1 > Subnet Load (0.1ms) SELECTsubnets.* FROMsubnetsWHERE >subnets.id= 11 ORDER BY priority LIMIT 1 > CACHE (0.0ms) SELECTusers.* FROMusersWHEREusers.id= 2 > LIMIT 1 > Setting Load (0.1ms) SELECTsettings.* FROMsettingsWHERE >settings.name= 'use_uuid_for_certificates' ORDER BY LOWER( > settings.name) LIMIT 1 > SQL (0.1ms) SELECT 1 FROMparametersWHEREparameters.type= > 'HostParameter' ANDparameters.reference_idIS NULL AND > (parameters.name= BINARY 'ib_ip_address') LIMIT 1 > SQL (0.1ms) SELECT 1 FROMparametersWHEREparameters.type= > 'HostParameter' ANDparameters.reference_idIS NULL AND > (parameters.name= BINARY 'mgmt_ip_address') LIMIT 1 > SQL (0.2ms) SELECT 1 FROMhostsWHERE (hosts.nameIS NULL) LIMIT 1 > SQL (3.9ms) SELECT 1 FROMhostsWHERE (hosts.ipIS NULL) LIMIT 1 > SQL (0.2ms) SELECT 1 FROMhostsWHERE (hosts.macIS NULL) LIMIT 1 > CACHE (0.0ms) SELECTsmart_proxies.* FROMsmart_proxiesWHERE >smart_proxies.id= 3 ORDER BY LOWER(smart_proxies.name) LIMIT 1 > ConfigTemplate Load (0.1ms) SELECTconfig_templates.* FROM >config_templatesINNER JOINconfig_templates_operatingsystemsON >config_templates_operatingsystems.config_template_id= >config_templates.idINNER JOINoperatingsystemsON >operatingsystems.id= >config_templates_operatingsystems.operatingsystem_idINNER JOIN >template_kindsONtemplate_kinds.id= >config_templates.template_kind_idINNER JOINtemplate_combinationsON >config_templates.id=template_combinations.config_template_id> INNER JOINhostgroupsONhostgroups.id= >template_combinations.hostgroup_idINNER JOINtemplate_combinations>environments_config_templates_joinONconfig_templates.id= >environments_config_templates_join.config_template_idINNER JOIN >environmentsONenvironments.id= >environments_config_templates_join.environment_idWHERE >template_kinds.name= 'PXELinux' ANDoperatingsystems.id= 4 AND >environments.id= 5 ANDhostgroups.id= 22 ORDER BY LOWER( > config_templates.name) LIMIT 1 > ConfigTemplate Load (0.1ms) SELECTconfig_templates.* FROM >config_templatesINNER JOINconfig_templates_operatingsystemsON >config_templates_operatingsystems.config_template_id= >config_templates.idINNER JOINoperatingsystemsON >operatingsystems.id= >config_templates_operatingsystems.operatingsystem_idINNER JOIN >template_kindsONtemplate_kinds.id= >config_templates.template_kind_idINNER JOINtemplate_combinationsON >config_templates.id=template_combinations.config_template_id> INNER JOINhostgroupsONhostgroups.id= >template_combinations.hostgroup_idWHEREtemplate_kinds.name= > 'PXELinux' ANDoperatingsystems.id= 4 ANDhostgroups.id= 22 ORDER > BY LOWER(config_templates.name) LIMIT 1 > ConfigTemplate Load (0.1ms) SELECTconfig_templates.* FROM >config_templatesINNER JOINconfig_templates_operatingsystemsON >config_templates_operatingsystems.config_template_id= >config_templates.idINNER JOINoperatingsystemsON >operatingsystems.id= >config_templates_operatingsystems.operatingsystem_idINNER JOIN >template_kindsONtemplate_kinds.id= >config_templates.template_kind_idINNER JOINtemplate_combinationsON >config_templates.id=template_combinations.config_template_id> INNER JOINenvironmentsONenvironments.id= >template_combinations.environment_idWHEREtemplate_kinds.name= > 'PXELinux' ANDoperatingsystems.id= 4 ANDenvironments.id= 5 > ORDER BY LOWER(config_templates.name) LIMIT 1 > ConfigTemplate Load (0.1ms) SELECTconfig_templates.* FROM >config_templatesINNER JOINconfig_templates_operatingsystemsON >config_templates_operatingsystems.config_template_id= >config_templates.idINNER JOINoperatingsystemsON >operatingsystems.id= >config_templates_operatingsystems.operatingsystem_idINNER JOIN >template_kindsONtemplate_kinds.id= >config_templates.template_kind_idINNER JOINos_default_templatesON >os_default_templates.config_template_id=config_templates.idWHERE >template_kinds.name= 'PXELinux' ANDoperatingsystems.id= 4 AND >os_default_templates.operatingsystem_id= 4 ORDER BY LOWER( > config_templates.name) LIMIT 1 > Setting Load (0.1ms) SELECTsettings.* FROMsettingsWHERE >settings.name= 'manage_puppetca' ORDER BY LOWER(settings.name) LIMIT > 1 > SQL (0.1ms) SELECT 1 FROMptablesINNER JOIN >operatingsystems_ptablesONptables.id = >operatingsystems_ptables.ptable_id WHEREptables.id= 15 AND > (operatingsystems_ptables.operatingsystem_id = 4 ) ORDER BY LOWER( > ptables.name) LIMIT 1 > SQL (0.1ms) SELECT 1 FROMmediaINNER JOINmedia_operatingsystems> ONmedia.id =media_operatingsystems.medium_id WHEREmedia.id= 11 > AND (media_operatingsystems.operatingsystem_id = 4 ) ORDER BY LOWER( > media.name) LIMIT 1 > SQL (0.1ms) SELECT 1 FROMarchitecturesINNER JOIN >architectures_operatingsystemsONarchitectures.id = >architectures_operatingsystems.architecture_id WHEREarchitectures.id> = 1 AND (architectures_operatingsystems.operatingsystem_id = 4 ) LIMIT 1 > Rendered hosts/_progress.erb (0.5ms) > Hypervisor Load (0.1ms) SELECThypervisors.* FROMhypervisorsORDER > 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 methodchomp' called for nil:NilClass
> /usr/share/foreman/app/models/host.rb:178:in shortname' > /usr/share/foreman/app/helpers/hosts_helper.rb:150:inname_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
> `i

··· On Thu, Jul 26, 2012 at 2:44 AM, treydock wrote:

That issue looks related to actually another issue I had and is already
posted, about provision template changes not taking effect unless the
"Preview" is clicked on first. The issue I'm having is cloning a host to
create a new one. Basically the name attribute is cleared by the clone
method before other methods try to operate on that attribute.

  • Trey
··· On Tuesday, July 31, 2012 2:23:04 PM UTC-5, ohad wrote: > > > > On Thu, Jul 26, 2012 at 2:44 AM, treydock wrote: > >> 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

As a side note, the fix I came up with basically sets name to an empty
string instead of nil, and to test that this didn't break any validations,
I tried to submit the cloned host before filling in needed values. This
results in a blank page with just the text "2012" and this in the logs

Started POST "/hosts/dc-bladekvm1.tamu.edu/clone" for 165.91.140.5 at Wed
Aug 01 17:45:58 -0500 2012
Processing by ErrorsController#routing as
Parameters:
{"authenticity_token"=>"Ld3qxYWQ5d0/8XR/EQRPGvOMCzXgmibqVFCd9CxyQSA=",
"utf8"=>"✓", "a"=>"hosts/dc-bladekvm1.tamu.edu/clone",
"host"=>{"hostgroup_id"=>"20", "sp_mac"=>"", "model_id"=>"18",
"comment"=>"", "name"=>"", "domain_id"=>"1", "subnet_id"=>"11",
"progress_report_id"=>"[FILTERED]", "mac"=>"", "ip"=>"192.168.200.4",
"ptable_id"=>"9", "enabled"=>"1", "puppetclass_ids"=>[""], "sp_ip"=>"",
"is_owned_by"=>"2-Users", "medium_id"=>"6", "root_pass"=>"[FILTERED]",
"environment_id"=>"5", "puppet_proxy_id"=>"3", "sp_subnet_id"=>"",
"architecture_id"=>"1", "provision_method"=>"build", "overwrite"=>"false",
"compute_resource_id"=>"", "managed"=>"1", "operatingsystem_id"=>"10",
"sp_name"=>"", "disk"=>"", "puppet_ca_proxy_id"=>"3", "build"=>"1"}}
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
Usergroup Load (0.1ms) SELECT usergroups.* FROM usergroups INNER
JOIN usergroup_members ON usergroups.id =
usergroup_members.usergroup_id WHERE ((usergroup_members.member_type =
'User') AND (usergroup_members.member_id = 2)) ORDER BY
LOWER(usergroups.name)
Usergroup Load (0.1ms) SELECT usergroups.* FROM usergroups INNER
JOIN usergroup_members ON usergroups.id = usergroup_members.member_id
AND usergroup_members.member_type = 'Usergroup' WHERE
((usergroup_members.usergroup_id = 2)) ORDER BY LOWER(usergroups.name)
User Load (0.1ms) SELECT users.* FROM users INNER JOIN
usergroup_members ON users.id = usergroup_members.member_id AND
usergroup_members.member_type = 'User' WHERE
((usergroup_members.usergroup_id = 2))
Bookmark Load (0.1ms) SELECT bookmarks.* FROM bookmarks WHERE
(((bookmarks.public = 1) OR (bookmarks.owner_id in (2) AND
bookmarks.owner_type = 'Usergroup') OR (bookmarks.owner_id = 2 AND
bookmarks.owner_type = 'User'))) ORDER BY name
Rendered bookmarks/_list.html.erb (2.7ms)
Rendered bookmarks/_list.html.erb (0.6ms)
Rendered home/_settings.html.erb (12.1ms)
Rendered home/_user_dropdown.rhtml (1.5ms)
Rendered home/_topbar.rhtml (30.9ms)
Rendered common/404.rhtml within layouts/application (40.0ms)
Completed 404 Not Found in 76ms (Views: 70.3ms | ActiveRecord: 228.8ms)

Looking at the code there is no route for POST to /hosts/:id/clone. This
is the only clone related route I see

                            clone_host GET   

/hosts/:id/clone(.:format)
{:action=>"clone", :controller=>"hosts", :id=>/[^/]+/}

Is this a bug ? If the intention is to actually post to the clone action I
could fix this.

Thanks

  • Trey
··· On Wednesday, August 1, 2012 5:44:42 PM UTC-5, treydock wrote: > > That issue looks related to actually another issue I had and is already > posted, about provision template changes not taking effect unless the > "Preview" is clicked on first. The issue I'm having is cloning a host to > create a new one. Basically the name attribute is cleared by the clone > method before other methods try to operate on that attribute. > > - Trey > > On Tuesday, July 31, 2012 2:23:04 PM UTC-5, ohad wrote: >> >> >> >> On Thu, Jul 26, 2012 at 2:44 AM, treydock wrote: >> >>> 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_contro

> That issue looks related to actually another issue I had and is already
> posted, about provision template changes not taking effect unless the
> "Preview" is clicked on first. The issue I'm having is cloning a host to
> create a new one. Basically the name attribute is cleared by the clone
> method before other methods try to operate on that attribute.
>
> - Trey
>
>
yeah, sorry, i mixed up - its Bug #1781: clone host can fail - Foreman and it is
fixed :slight_smile:

··· On Thu, Aug 2, 2012 at 1:44 AM, treydock wrote:

On Tuesday, July 31, 2012 2:23:04 PM UTC-5, ohad wrote:

On Thu, Jul 26, 2012 at 2:44 AM, treydock treydock@gmail.com wrote:

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/clonehttp://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:inshortname’
/usr/share/foreman/app/**helpers/hosts_helper.rb:150:in name_field' /usr/share/foreman/app/views/**hosts/_form.html.erb:27:inapp_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:inwith_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:infields_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:**inform_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: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/partials.rb:333:inrender_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: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_**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:inrender_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:inapp_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:inrender’
/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:inrender’
/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: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_**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:inrender’
/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:inrender_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:inrender_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:inrender’
/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:inrender’
/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:inrealtime’
/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:inrender’
/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:incleanup_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:inclone’
/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: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:**471:inrun__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.r

I found the two commits on github and was able to clone successfully once
applied, thanks!

··· On Thursday, August 2, 2012 1:22:40 AM UTC-5, ohad wrote: > > > > On Thu, Aug 2, 2012 at 1:44 AM, treydock wrote: > >> That issue looks related to actually another issue I had and is already >> posted, about provision template changes not taking effect unless the >> "Preview" is clicked on first. The issue I'm having is cloning a host to >> create a new one. Basically the name attribute is cleared by the clone >> method before other methods try to operate on that attribute. >> >> - Trey >> >> > yeah, sorry, i mixed up - its http://theforeman.org/issues/1781 and it > is fixed :) > >> > >> On Tuesday, July 31, 2012 2:23:04 PM UTC-5, ohad wrote: >>> >>> >>> >>> On Thu, Jul 26, 2012 at 2:44 AM, treydock wrote: >>> >>>> 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__call