This bug was initially created as a copy of Bug #1781671 I am copying this bug because: When setting foreman_tasks_proxy_batch_trigger to false as suggested in the other BZ as workaround, ansible jobs do not work anymore in satellite. I'm currently not aware why setting batch triggering to false should prevent ansible from functioning. Someone would have to look into that. Description of problem: When setting foreman_tasks_proxy_batch_trigger to false ansible jobs configured in satellite do not work anymore Version-Release number of selected component (if applicable): Satellite 6.6 How reproducible: always Steps to Reproduce: 1. Create a job on 3 hosts (use ansible template) 2. Run the job with foreman_tasks_proxy_batch_trigger to false 3. Observe the times of jobs being not executed. Actual results: should run them in parallel at least (no concurrency as in the other BZ) Expected results: I would expect that if Satellite is able to run all 3 jobs at once in short time.
Created redmine issue https://projects.theforeman.org/issues/29235 from this bug
Upstream bug assigned to aruzicka
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/28612 has been resolved.
Fix is in Satellite 6.9 SNAP 1 with tfm-rubygem-foreman_ansible-6.0.0-1.el7sat.noarch
VERIFIED. @Satellite 6.9.0 Snap12 tfm-rubygem-foreman_ansible-6.0.1-1.el7sat.noarch by the following reproducer: 1) Set up Satellite and 3 hosts for REX 2) Change Settings -> Foreman Tasks -> "Allow Capsule batch tasks" to "No" 3) Run Ansible REX for the 3 hosts FIX: >>> all 3 jobs finished successfully at the same time on all hosts vs. REPRO: all 3 jobs failed with: 1:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 1: ---: command not found 2:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 2: -: command not found 3:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 3: tasks:: command not found 4:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 4: -: command not found 5:Thu Feb 11 18:25:18 EST 2021 6:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 5: cmd:: command not found 7:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 7: register:: command not found 8:/var/tmp/foreman-ssh-cmd-0fe71302-2942-4e09-8aa3-99ee2bc7a308/script: line 8: -: command not found 9:Exit status: 127
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1313