Actions
Bug #24133
closedRails 5.1 error when submitting salt report: "unable to convert unpermitted parameters to hash (ActionController::UnfilteredParameters)"
Description
The error manifests using rails 5.1, which foreman 1.17.1 ships with. The error occurs when attempting upload-salt-reports:
Unable to upload job - aborting report upload { "error": {"message":"unable to convert unpermitted parameters to hash"} }
Full error dump from /var/logs/foreman/production.log:
2018-07-02T15:30:06 92d5fbfc [app] [I] Processing job 20180702202819503701 from Salt. 2018-07-02T15:30:06 92d5fbfc [background] [E] unable to convert unpermitted parameters to hash (ActionController::UnfilteredParameters) | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:265:in `to_h' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:282:in `to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:50:in `recursive_to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `block in recursive_to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `each' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `inject' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `recursive_to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:561:in `check_serializable' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:503:in `block in execute_plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `block in with_error_handling' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `catch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `with_error_handling' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:483:in `execute_plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:277:in `execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:270:in `block (2 levels) in plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:368:in `switch_flow' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:358:in `with_planning_scope' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:269:in `block in plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:43:in `plan_phase' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:43:in `plan_phase' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:16:in `block in rollback_on_error' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction' | /usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/transaction_adapters/active_record.rb:5:in `transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:15:in `rollback_on_error' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:5:in `plan_phase' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/world.rb:30:in `execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:268:in `plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:174:in `block in plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:172:in `tap' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:172:in `plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:148:in `trigger' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:19:in `trigger' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:25:in `block in trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:39:in `block in rails_safe_trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:185:in `yield_shares' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:45:in `permit_concurrent_loads' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:38:in `rails_safe_trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:23:in `trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:47:in `async_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_salt-10.0.0/app/controllers/foreman_salt/api/v2/jobs_controller.rb:25:in `upload' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks' | /usr/share/foreman/app/controllers/api/v2/base_controller.rb:152:in `disable_json_root' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.5.0/lib/audited/sweeper.rb:14:in `around' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.5.0/lib/audited/sweeper.rb:14:in `around' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/mapper.rb:16:in `block in <class:Constraints>' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/mapper.rb:46:in `serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.8/lib/apipie/static_dispatcher.rb:65:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.8/lib/apipie/extractor/recorder.rb:136:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.8/lib/apipie/middleware/checksum_in_headers.rb:27:in `call' | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/etag.rb:25:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/conditional_get.rb:38:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call' | /usr/share/foreman/lib/middleware/session_safe_logging.rb:17:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in `context' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call' | /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/runtime.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-3.7.3/lib/secure_headers/middleware.rb:12:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:68:in `block in call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `each' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `call' | /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request' | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request' | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop' | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads' | /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' | /usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context' 2018-07-02T15:30:06 92d5fbfc [app] [W] Action failed | ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:265:in `to_h' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:282:in `to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:50:in `recursive_to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `block in recursive_to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `each' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `inject' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/serializable.rb:46:in `recursive_to_hash' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:561:in `check_serializable' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:503:in `block in execute_plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `block in with_error_handling' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `catch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `with_error_handling' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:483:in `execute_plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/action.rb:277:in `execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:270:in `block (2 levels) in plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:368:in `switch_flow' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:358:in `with_planning_scope' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:269:in `block in plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:43:in `plan_phase' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:43:in `plan_phase' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:16:in `block in rollback_on_error' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction' | /usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/transaction_adapters/active_record.rb:5:in `transaction' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:15:in `rollback_on_error' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:5:in `plan_phase' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/middleware/world.rb:30:in `execute' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:268:in `plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:174:in `block in plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:172:in `tap' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:172:in `plan' | /usr/share/foreman/vendor/ruby/2.3.0/gems/dynflow-0.8.37/lib/dynflow/world.rb:148:in `trigger' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:19:in `trigger' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:25:in `block in trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:39:in `block in rails_safe_trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:185:in `yield_shares' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:45:in `permit_concurrent_loads' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:38:in `rails_safe_trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:23:in `trigger_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:47:in `async_task' | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_salt-10.0.0/app/controllers/foreman_salt/api/v2/jobs_controller.rb:25:in `upload' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks' | /usr/share/foreman/app/controllers/api/v2/base_controller.rb:152:in `disable_json_root' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.5.0/lib/audited/sweeper.rb:14:in `around' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.5.0/lib/audited/sweeper.rb:14:in `around' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/mapper.rb:16:in `block in <class:Constraints>' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/mapper.rb:46:in `serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.8/lib/apipie/static_dispatcher.rb:65:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.8/lib/apipie/extractor/recorder.rb:136:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.8/lib/apipie/middleware/checksum_in_headers.rb:27:in `call' | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/etag.rb:25:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/conditional_get.rb:38:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call' | /usr/share/foreman/lib/middleware/session_safe_logging.rb:17:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in `context' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call' | /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/runtime.rb:22:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-3.7.3/lib/secure_headers/middleware.rb:12:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send' | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:68:in `block in call' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `each' | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `call' | /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request' | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request' | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop' | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads' | /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' | /usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context' 2018-07-02T15:30:06 92d5fbfc [app] [I] Rendering api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout 2018-07-02T15:30:06 92d5fbfc [app] [I] Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (1.4ms) 2018-07-02T15:30:06 92d5fbfc [app] [I] Completed 500 Internal Server Error in 277ms (Views: 4.2ms | ActiveRecord: 41.8ms)
Foreman 1.17.1, foreman-salt 10.0.0
Salt --versions-report:
Salt Version: Salt: 2018.3.2 Dependency Versions: cffi: Not Installed cherrypy: 3.2.3 dateutil: 2.4.2 docker-py: Not Installed gitdb: 0.6.4 gitpython: 1.0.1 ioflo: Not Installed Jinja2: 2.8 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: 1.0.3 msgpack-pure: Not Installed msgpack-python: 0.4.6 mysql-python: Not Installed pycparser: Not Installed pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.12 (default, Dec 4 2017, 14:50:18) python-gnupg: 0.3.8 PyYAML: 3.11 PyZMQ: 15.2.0 RAET: Not Installed smmap: 0.9.0 timelib: Not Installed Tornado: 4.2.1 ZMQ: 4.1.4 System Versions: dist: Ubuntu 16.04 xenial locale: UTF-8 machine: x86_64 release: 4.4.0-116-generic system: Linux version: Ubuntu 16.04 xenial
By manually rolling back to rails 5.0, I was able to eliminate this error. The error is consistent between foreman-salt 10.0.0 and a fresh git master.
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Greg Sutcliffe
- Pull request https://github.com/theforeman/foreman_salt/pull/79 added
Updated by Ben Howell over 6 years ago
Verified the added line
params[:job].permit!fixes the rails import error. Confirmed on the latest master commit of foreman_salt.
Updated by Anonymous over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_salt|07c612bb9d9f0d869b880a2f489df9e0f0e335f5.
Updated by Greg Sutcliffe over 6 years ago
- Related to Bug #23658: Foreman Salt Plugin 10.0 upload-salt-reports error with Foreman 1.17 added
Actions