Project

General

Profile

Actions

Bug #28431

closed

Job invocation using Ansible commands stays stuck in pending state.

Added by Adam Ruzicka over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1780108

Description of problem:
Job invocation using Ansible commands stays in pending state.

Version-Release number of selected component (if applicable):
- Satellite 6.7.0 snap 4
- tfm-rubygem-foreman_remote_execution-2.0.4-1.el7sat.noarch

How reproducible:
- Always

Steps to Reproduce:
1. Go to Monitor > Jobs > Run Job
2. Select Ansible commands as Job category
3. Provide Search querry and command to be run.

Actual results:
- Job invocation stays stuck in pending state.

Expected results:
- Job invocation should complete.(either fail/pass)

Additional info:
Relevant stacktrace from smart proxy dynflow core

[05/Dec/2019:05:23:33 EST] "GET /tasks/count?state=running HTTP/1.1" 200 29
undefined method `[]' for nil:NilClass (NoMethodError)
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible_core-3.0.2/lib/foreman_ansible_core/runner/ansible_runner.rb:151:in `block in rebuild_secrets'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible_core-3.0.2/lib/foreman_ansible_core/runner/ansible_runner.rb:143:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible_core-3.0.2/lib/foreman_ansible_core/runner/ansible_runner.rb:143:in `rebuild_secrets'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible_core-3.0.2/lib/foreman_ansible_core/runner/ansible_runner.rb:8:in `initialize'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-core-0.3.3/lib/foreman_tasks_core/batch_runner_action.rb:11:in `new'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-core-0.3.3/lib/foreman_tasks_core/batch_runner_action.rb:11:in `initiate_runner'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-core-0.3.3/lib/foreman_tasks_core/runner/action.rb:40:in `init_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-core-0.3.3/lib/foreman_tasks_core/runner/action.rb:10:in `run'

Actions #1

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman_ansible/pull/315 added
Actions #2

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Adam Ruzicka over 4 years ago

  • Subject changed from Job invocation using Ansible commands stays stuck in pending state. to Job invocation using Ansible commands stays stuck in pending state.
  • Fixed in Releases foreman_ansible 4.0.2 added
Actions

Also available in: Atom PDF