Project

General

Profile

Actions

Bug #14897

closed

remote_execution_ssh_keys snippet: undefined method 'join' for String::Jail (String)

Added by Stijn Tintel almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

When defining remote_execution_ssh_keys in global parameters, and including the default remote_execution_ssh_keys snippet in a finish template, I am getting the following error:

2016-05-02T11:31:36 [app] [I] Started GET "/unattended/finish?token=2ca0b3c7-d5a1-450b-b0ee-81421d40b166" for 10.69.12.208 at 2016-05-02 11:31:36 +0200
2016-05-02T11:31:36 [app] [I] Processing by UnattendedController#host_template as */*
2016-05-02T11:31:36 [app] [I]   Parameters: {"token"=>"2ca0b3c7-d5a1-450b-b0ee-81421d40b166", "kind"=>"finish"}
2016-05-02T11:31:36 [app] [I] Found dockertest1604.dev.int
2016-05-02T11:31:36 [app] [I]   Rendered inline template (173.3ms)
2016-05-02T11:31:36 [app] [W] There was an error rendering the Preseed default finish template: 
 | ActionView::Template::Error: The snippet 'remote_execution_ssh_keys' threw an error: undefined method 'join' for String::Jail (String)
 | /usr/share/foreman/lib/foreman/renderer.rb:75:in `rescue in snippet'
 | /usr/share/foreman/lib/foreman/renderer.rb:72:in `snippet'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/safemode-1.2.4/lib/safemode/scope.rb:37:in `method_missing'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/safemode-1.2.4/lib/safemode.rb:119:in `bind'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/safemode-1.2.4/lib/safemode.rb:51:in `eval'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/safemode-1.2.4/lib/safemode.rb:51:in `eval'
 | /usr/share/foreman/lib/foreman/renderer.rb:16:in `render_safe'
 | /usr/share/foreman/lib/foreman/renderer.rb:103:in `unattended_render'
 | inline template:1:in `_e9f11054da39b28c624a02c1f30789a2'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/template.rb:145:in `block in render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:161:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/template.rb:339:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/template.rb:143:in `render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in `render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:159:in `block in instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:159:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/template_renderer.rb:53:in `render_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/template_renderer.rb:17:in `render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/renderer.rb:46:in `render_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/renderer/renderer.rb:27:in `render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/rendering.rb:99:in `_render_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/streaming.rb:217:in `_render_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/rendering.rb:82:in `render_to_body'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/renderers.rb:32:in `render_to_body'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/abstract_controller/rendering.rb:25:in `render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rendering.rb:16:in `render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
 | /usr/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/core_ext/benchmark.rb:12:in `ms'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.1.14.2/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:43:in `render'
 | /usr/share/foreman/app/controllers/unattended_controller.rb:209:in `safe_render'
 | /usr/share/foreman/app/controllers/unattended_controller.rb:66:in `render_template'
 | /usr/share/foreman/app/controllers/unattended_controller.rb:48:in `host_template'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/abstract_controller/base.rb:189:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:113:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:113:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:552:in `block (2 levels) in compile'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in `block (2 levels) in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `block (2 levels) in halting'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in `around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in `public_send'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in `block in make_lambda'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `block in halting'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `block in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in `block (2 levels) in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `block (2 levels) in halting'
 | /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in `set_timezone'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:429:in `block in make_lambda'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `block in halting'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `block in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in `block (2 levels) in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `block (2 levels) in halting'
 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:429:in `block in make_lambda'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `block in halting'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `block in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in `block (2 levels) in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in `block (2 levels) in halting'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in `around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in `public_send'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in `block in make_lambda'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in `block in halting'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in `block in around'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:86:in `run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/abstract_controller/callbacks.rb:19:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:159:in `block in instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:159:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.1.14.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/abstract_controller/base.rb:136:in `process'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.1.14.2/lib/action_view/rendering.rb:30:in `process'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal.rb:196:in `dispatch'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_controller/metal.rb:232:in `block in action'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:80:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:48:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/journey/router.rb:73:in `block in call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/journey/router.rb:59:in `each'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/journey/router.rb:59:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:690:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/etag.rb:23:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/conditionalget.rb:25:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/head.rb:11:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
 | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/flash.rb:254:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225:in `context'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/cookies.rb:562:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.1.14.2/lib/active_record/query_cache.rb:36:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.1.14.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:82:in `run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.1.14.2/lib/rails/rack/logger.rb:38:in `call_app'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.1.14.2/lib/rails/rack/logger.rb:22:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/runtime.rb:17:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.1.14.2/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/static.rb:84:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/sendfile.rb:112:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.1.14.2/lib/rails/engine.rb:514:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.1.14.2/lib/rails/application.rb:144:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in `public_send'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in `method_missing'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:138:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/urlmap.rb:65:in `block in call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/urlmap.rb:50:in `each'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.5.5/lib/rack/urlmap.rb:50:in `call'
 | /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in `accept_and_process_next_request'
 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in `block (3 levels) in start_threads'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `call'
 | /usr/share/foreman/vendor/ruby/2.0.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'
2016-05-02T11:31:36 [app] [I]   Rendered text template (0.0ms)
2016-05-02T11:31:36 [app] [I] Completed 500 Internal Server Error in 184ms (Views: 0.4ms | ActiveRecord: 2.7ms)
stijn@wgg007:/tmp$ curl http://172.24.1.13/unattended/finish?token=2ca0b3c7-d5a1-450b-b0ee-81421d40b166
There was an error rendering the Preseed default finish template: The snippet 'remote_execution_ssh_keys' threw an error: undefined method 'join' for String::Jail (String)

Simply removing the join solves this problem for me.

Actions #1

Updated by Dominic Cleal almost 8 years ago

  • Project changed from Foreman to Foreman Remote Execution

I believe this is only meant to be used with the remote execution plugin, do you have it installed?

Actions #2

Updated by Stijn Tintel almost 8 years ago

Dominic Cleal wrote:

I believe this is only meant to be used with the remote execution plugin, do you have it installed?

I did not have it installed, but installing it doesn't change anything.

Furthermore, I don't see anything in the snippet that limits it to be only used with remote execution plugin.

Actions #3

Updated by Stephen Benjamin almost 8 years ago

It is absolutely limited to being used by the foreman_remote_execution plugin. It expects an array of SSH keys which you cannot provide in the host parameters as a user. User specified parameters are only strings, which is a long-standng limitation in Foreman.

It also is very much tied to our plugin because it only installs the keys for the remote_execution_ssh_user.

Perhaps Foreman shouldn't seed it unless the plugin is installed so users aren't confused by this? Or foreman provide a generic mechanism for configuring SSH keys.

Actions #4

Updated by Marek Hulán almost 8 years ago

Perhaps Foreman shouldn't seed it unless the plugin is installed

Either this or make the snippet also work with strings. Not sure whether that wouldn't lead to more confusions though.

Actions #5

Updated by Stephen Benjamin almost 8 years ago

Either this or make the snippet also work with strings. Not sure whether that wouldn't lead to more confusions though.

Or support an additional_ssh_key string parameter? I'm just reluctant to make this more generic because of the tie to remote_execution_ssh_user. If a user wants to deploy generic SSH keys and support remote execution, making this snippet dual-purpose wouldn't let them do that, which is why I'm inclined to say have a separate mechanism if it's really wanted.

Actions #6

Updated by Marek Hulán almost 8 years ago

  • Status changed from New to Resolved

Agreed. So I'm closing this, Stijn if you want Foreman to provide a generic way to setup a key during provisioning, please create Feature issue for it. I sent a PR against community-templates that adds explicit mention about REX plugin to the template - https://github.com/theforeman/community-templates/pull/275

Actions #7

Updated by Stijn Tintel almost 8 years ago

Marek Hulán wrote:

Agreed. So I'm closing this, Stijn if you want Foreman to provide a generic way to setup a key during provisioning, please create Feature issue for it. I sent a PR against community-templates that adds explicit mention about REX plugin to the template - https://github.com/theforeman/community-templates/pull/275

Fair enough. Thanks for adding the explicit mention.

Actions

Also available in: Atom PDF