Project

General

Profile

Bug #35585

Unable to enable callback plugin per-template

Added by Nofar Alfassi 8 months ago. Updated 4 months ago.


Description

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

Description of problem:

After the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1934110 went in (in 6.10), it's not possible to upload reports to Satellite for cloned roles.

The option to set a cloned role in "Administer -> Remote Execution Features -> ansible_run_host" is not valid since only one role (cloned or not) would have that
"ability", so it would be better to add a flag to every job template to enable it
(that way it could be inherited or not when cloned).

Version-Release number of selected component (if applicable):

How reproducible:

Always

Steps to Reproduce:
1. Clone: "Ansible Roles - Ansible Default" template [1]
2. Run: the new template
3. "WARNING: Callback disabled by environment. Disabling the Foreman callback plugin"

Actual results:

Foreman callback plugin is not enabled and report is not uploaded to Satellite.

Expected results:

Foreman callback plugin is enabled if set and report is uploaded to Satellite.

Additional info:


Subtasks

Foreman - Feature #35726: Add pagelet mountpoints to form template to make it extensible in pluginsClosedNofar Alfassi

Related issues

Related to Ansible - Bug #36298: Fix default playbook for running Ansible roles has Ansible callback disabledClosed
Related to Ansible - Bug #36299: The migration for adding the new ansible_callback_enabled column is failing on nightly Katello Closed

Associated revisions

Revision fb3e6b62 (diff)
Added by Nofar Alfassi 5 months ago

Fixes #35585 - add an option to enable the callback plugin for job templates

Added the propery ansible_callback_enabled to the templates table.
Created a Pagelet on the job template's form to add the callback option to the UI.

Revision 6b13e24d (diff)
Added by Nofar Alfassi 5 months ago

Fixes #35585 - add ansible_callback_enabled option to JobTemplate

History

#1 Updated by Nofar Alfassi 8 months ago

  • Assignee set to Nofar Alfassi
  • Subject changed from Unable to enable callback plugin per-template to Unable to enable callback plugin per-template

#2 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/572 added

#3 Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/theforeman/hammer-cli-foreman-ansible/pull/13 added

#4 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases foreman_ansible-10.0.0 added

#5 Updated by Nofar Alfassi 5 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Nofar Alfassi 5 months ago

  • Target version changed from foreman_ansible-10.0.0 to foreman_ansible-11.0.0
  • Fixed in Releases foreman_ansible-11.0.0 added
  • Fixed in Releases deleted (foreman_ansible-10.0.0)

#7 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases hammer-cli-foreman-ansible 0.3.3 added

#8 Updated by The Foreman Bot 4 months ago

  • Pull request https://github.com/theforeman/foreman-documentation/pull/1991 added

#9 Updated by Nofar Alfassi about 2 months ago

  • Related to Bug #36298: Fix default playbook for running Ansible roles has Ansible callback disabled added

#10 Updated by Nofar Alfassi about 2 months ago

  • Related to Bug #36299: The migration for adding the new ansible_callback_enabled column is failing on nightly Katello added

Also available in: Atom PDF