Bug 2266600

Summary: ansible callback plugin is not used on ansible-core 2.15+
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: Ansible - Configuration ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.12.5CC: egolov, nalfassi, osousa, rlavi, shwsingh
Target Milestone: 6.12.5Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-installer-3.3.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-22 18:51:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Pramuk 2024-02-28 12:55:48 UTC
Description of problem:
Satellite 6.12.z and 6.11.z callback plugin is skipped from running on ansible-core 2.15 or newer (=RHEL8.9+)
When I downgrade to ansible-core 2.14 callback plugin starts to work with nice "DEPRECATION WARNING"
---
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names 
to new standard, use callbacks_enabled instead. This feature will be removed 
from ansible-core in version 2.15. Deprecation warnings can be disabled by 
setting deprecation_warnings=False in ansible.cfg.
---
ansible-core 2.15 kept the promise and removed "callback_whitelist"


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

How reproducible:
deterministic


Steps to Reproduce:
1. Have Satellite installed on RHEL 8.9+ (or upgrade ansible-core to 2.15+)
2. Run an Ansible role via Satellite
3. Check for config report


Actual results:
Execution works, but there is no report in Satellite

Expected results:
Execution works, reports are uploaded to Satellite

Comment 1 Lukas Pramuk 2024-03-11 11:47:58 UTC
VERIFIED.

@Satellite 6.12.5.3 Snap2
foreman-installer-3.3.0.10-1.el8sat.noarch

by manual reproducer described in comment#0:

1) Have Satellite installed on RHEL 8.9+ (or upgrade ansible-core to 2.15+)
# rpm -q ansible-core
ansible-core-2.15.3-1.el8.x86_64

2) Run an Ansible role via Satellite
# hammer host ansible-roles play --name $(hostname)
Ansible roles are being played. Job ID: 1

3. Check for config report
# hammer config-report list --search host=$(hostname),applied=1
---|----------------------------|---------------------|---------|---------|-----------|--------|------------------|---------|--------
ID | HOST                       | LAST REPORT         | ORIGIN  | APPLIED | RESTARTED | FAILED | RESTART FAILURES | SKIPPED | PENDING
---|----------------------------|---------------------|---------|---------|-----------|--------|------------------|---------|--------
1  | sat.example.com            | 2024/03/11 11:33:39 | Ansible | 1       | 0         | 0      | 0                | 8       | 0      
---|----------------------------|---------------------|---------|---------|-----------|--------|------------------|---------|--------

>>> Ansible callback plugin successfully reports to Satellite

Comment 6 errata-xmlrpc 2024-04-22 18:51:37 UTC
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 (Satellite 6.12.5.3 Async Update), 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/RHBA-2024:1958