Bug 2245081
| Summary: | A Capsule 6.13 has callback plugin set as theforeman.foreman.foreman which affects ansible facts upload | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
| Component: | Installation | Assignee: | Evgeni Golov <egolov> |
| Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.13.4 | CC: | ahumbe, ehelms, gsulliva, lpramuk |
| Target Milestone: | 6.15.0 | Keywords: | Triaged, UserExperience, WorkAround |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | satellite-installer-6.15.0.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-23 17:15:23 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
Sayan Das
2023-10-19 15:18:56 UTC
Solution: Enable the Ansible feature on externa capsules in this way i.e. # satellite-installer --enable-foreman-proxy-plugin-ansible --foreman-proxy-plugin-ansible-callback=redhat.satellite.foreman notes from triage: it's probably because the migration we have (to switch from t.f.f to r.s.f) happens to early, and an easy "fix" would be to hard-code the callback in the scenario overrides (it would take away the possibility to use a different callback, but this is fine in an appliance context that satellite is) Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set. VERIFIED. @Satellite 6.15.0 Snap 2.1 satellite-installer-6.15.0.2-1.el8sat.noarch using an extended reproducer described in comment#0: 1) Have a Satellite with external Capsule integrated 2) Enable Ansible feature on Capsule # satellite-installer --enable-foreman-proxy-plugin-ansible 3) Check the callback plugin # grep -rn -e callback: -e _CALLBACK /etc /etc/foreman-proxy/ansible.env:1:export ANSIBLE_CALLBACK_WHITELIST="redhat.satellite.foreman" /etc/foreman-proxy/ansible.env:2:export ANSIBLE_CALLBACKS_ENABLED="redhat.satellite.foreman" /etc/foreman-installer/scenarios.d/capsule-answers.yaml:227: callback: theforeman.foreman.foreman >>> override to redhat.satellite.foreman works while installer option --foreman-proxy-plugin-ansible-callback value stopped to make any sense as it is now forcibly overridden 4) Disable Ansible feature on Satellite (to avoid rrobin to distribute tasks to Satellite) # satellite-installer --no-enable-foreman-proxy-plugin-ansible 5) On Capsule download some roles, import them and assign to Capsule host 6) Play the roles for Capsule host and check the job output # hammer job-invocation output --id 2 --host <capsule_host> REPRO: [WARNING]: Skipping callback plugin 'theforeman.foreman.foreman', unable to load PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [<capsule_host>] vs. FIX: PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [<capsule_host>] 7) Check for facts upload # hammer config-report list --search host=<capsule_host>,applied=1 REPRO: ---|------|-------------|--------|---------|-----------|--------|------------------|---------|-------- ID | HOST | LAST REPORT | ORIGIN | APPLIED | RESTARTED | FAILED | RESTART FAILURES | SKIPPED | PENDING ---|------|-------------|--------|---------|-----------|--------|------------------|---------|-------- vs. FIX: ---|--------------------------------------------------|---------------------|---------|---------|-----------|--------|------------------|---------|-------- ID | HOST | LAST REPORT | ORIGIN | APPLIED | RESTARTED | FAILED | RESTART FAILURES | SKIPPED | PENDING ---|--------------------------------------------------|---------------------|---------|---------|-----------|--------|------------------|---------|-------- 2 | <capsule_host> | 2023/12/13 18:07:52 | Ansible | 1 | 0 | 0 | 0 | 8 | 0 ---|--------------------------------------------------|---------------------|---------|---------|-----------|--------|------------------|---------|-------- For Satellite (internal capsule) this is still an issue manifesting after disabling and enabling the Ansible feature BZ#2254576 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 (Important: Satellite 6.15.0 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-2024:2010 |