Action: Actions::RemoteExecution::RunHostJob Input: {"host"=>{"id"=>1, "name"=>"MyFQDN"}, "job_category"=>"Ansible Commands", "description"=>"Run echo \"An Ansible Commands - Run Ansible test\"", "delegated_action_id"=>2, "current_request_id"=>nil, "current_timezone"=>"Australia/Sydney", "current_user_id"=>4, "current_organization_id"=>1, "current_location_id"=>2} Output: {} Exception: StandardError: Job execution failed Backtrace: /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:in `block in assigns' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `tap' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `assigns' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in `match_value' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:in `block in match?' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `each' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `match?' /usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in `match' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/execution_plan/steps/error.rb:13:in `new' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:504:in `set_error' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:467:in `error!' /usr/share/gems/gems/foreman_remote_execution-3.3.1/app/lib/actions/remote_execution/run_host_job.rb:70:in `check_exit_status' /usr/share/gems/gems/foreman_remote_execution-3.3.1/app/lib/actions/remote_execution/run_host_job.rb:57:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:584:in `block (2 levels) in execute_finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:40:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/rails_executor_wrap.rb:20:in `block in finalize' /usr/share/gems/gems/activesupport-6.0.2.2/lib/active_support/execution_wrapper.rb:88:in `wrap' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/rails_executor_wrap.rb:19:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action/progress.rb:31:in `with_progress_calculation' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action/progress.rb:23:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_request_id.rb:19:in `block in finalize' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_request_id.rb:49:in `restore_current_request_id' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_request_id.rb:19:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_timezone.rb:19:in `block in finalize' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_timezone.rb:44:in `restore_curent_timezone' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_timezone.rb:19:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_user.rb:19:in `block in finalize' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_user.rb:44:in `restore_curent_user' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_user.rb:19:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_taxonomies.rb:19:in `block in finalize' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in `restore_current_taxonomies' /usr/share/gems/gems/foreman-tasks-2.0.0/app/lib/actions/middleware/keep_current_taxonomies.rb:19:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/world.rb:31:in `execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:583:in `block in execute_finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:475:in `block in with_error_handling' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:475:in `catch' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:475:in `with_error_handling' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:582:in `execute_finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/action.rb:285:in `execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in `block (2 levels) in execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/execution_plan/steps/abstract.rb:167:in `with_meta_calculation' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in `block in execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in `open_action' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in `execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:78:in `run_step' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:63:in `dispatch' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:70:in `block in run_in_sequence' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:70:in `each' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:70:in `all?' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:70:in `run_in_sequence' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:59:in `dispatch' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:28:in `block in finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:27:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:19:in `pass' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware.rb:48:in `finalize_phase' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/stack.rb:23:in `call' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/middleware/world.rb:31:in `execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director/sequential_manager.rb:27:in `finalize' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/director.rb:122:in `execute' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/executors/sidekiq/worker_jobs.rb:11:in `block (2 levels) in perform' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/executors.rb:18:in `run_user_code' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/executors/sidekiq/worker_jobs.rb:9:in `block in perform' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/executors/sidekiq/worker_jobs.rb:25:in `with_telemetry' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/executors/sidekiq/worker_jobs.rb:8:in `perform' /usr/share/gems/gems/dynflow-1.4.4/lib/dynflow/executors/sidekiq/serialization.rb:27:in `perform' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:192:in `execute_job' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:165:in `block (2 levels) in process' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:128:in `block in invoke' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:133:in `invoke' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:164:in `block in process' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:109:in `local' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq.rb:37:in `block in ' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:250:in `stats' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_logger.rb:8:in `call' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:74:in `global' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in `block in dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in `with_context' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in `with_job_hash_context' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in `dispatch' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in `process' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in `process_one' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in `run' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in `watchdog' /usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in `block in safe_thread' /usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'