Project

General

Profile

Actions

Bug #32020

closed

Tracker #31404: Improve Ansible integration so it is usable as CfgMngmt tool

Foreman callback is run always not just for roles

Added by Ondřej Ezr over 3 years ago. Updated over 3 years ago.

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

Description

We are running Foreman callback and thus creating the configuration report for every ansible run initiated by foreman.

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

Description of problem:
When Foreman used ansible-playbook, it disabled the callback plugin for all runs, except when roles were being applied.

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.


Related issues 2 (0 open2 closed)

Related to Ansible - Bug #23879: Ansible REX job shall not update host Configuration statusClosed06/11/2018Actions
Related to Ansible - Feature #31890: Consume the reports callback from the foreman ansible collectionResolvedActions
Actions #1

Updated by Ondřej Ezr over 3 years ago

  • Subject changed from Foreman callback is run always not just for roles to Foreman callback is run always not just for roles
  • Parent task set to #31404
  • Found in Releases foreman_ansible-6.1.1 added
Actions #2

Updated by The Foreman Bot over 3 years ago

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

Updated by Ondřej Ezr over 3 years ago

  • Related to Bug #23879: Ansible REX job shall not update host Configuration status added
Actions #4

Updated by Adam Ruzicka over 3 years ago

  • Related to Feature #31890: Consume the reports callback from the foreman ansible collection added
Actions #5

Updated by Adam Ruzicka over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF