Description of problem: When satellite used ansible-playbook, it disabled the callback plugin for all runs, except when roles were being applied. Version-Release number of selected component (if applicable): tfm-rubygem-foreman_ansible-6.1.1-1.el7sat.noarch How reproducible: Always Steps to Reproduce: 1. Bump ansible verbosity to -vvvv in Administer > Settings > Ansible > Default verbosity level 2. Run for example ls -la / using ansible 3. Check the output Actual results: Line "Loading callback plugin foreman of type notification, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/foreman.py" appears in the output, run is slow. Expected results: The callback plugin is not loaded, no such line in output, faster run. Additional info: The current callback plugin is not exactly ideal performance wise and might cause severe performance degradation, depending on number of hosts and the playbook being run.
Created redmine issue https://projects.theforeman.org/issues/32020 from this bug
Upstream bug assigned to aruzicka
Steps to Test: 1. Register a content host to Satellite and configure it for remote execution using the Global Registration Template. 2. In the Satellite webUI, increase the Ansible verbosity to Level 4 using the Administer > Settings > Ansible > Default verbosity level setting. 3. In the Satellit webUI, navigate to Hosts > All Hosts > [hostname] and click the "Schedule remote job" button. 4. On the job invocation page, set the job category to "Ansible Commands" and enter "ls -la" in the "command" field. 5. Click the "Submit" button. Expected Results: The foreman notification callback is not loaded, and the job completes faster than a Satellite that does use this callback. Actual Results: The foreman notification callback is not loaded, and the job completes faster than a Satellite that does use this callback. On Satellite 6.10.0, snap 5, the job completes in 11 seconds, and the output contains the following line: output: "[WARNING]: Skipping callback plugin 'theforeman.foreman.foreman', unable to\r\nload\n" On Satellite 6.9.3, snap 3, the same job completes in 31 seconds, and the output contains the following line: output: 'Loading callback plugin foreman of type notification, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/foreman.pyc Verified on Satellite 6.10, snap 5 (tfm-rubygem-foreman_ansible-6.3.0-1.el7sat.noarch).
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.10 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:4702