Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
A new config report is created when you run all ansible roles on a particular host:
- WebUI --> Hosts --> All Hosts --> select hosts --> Select Action --> Run all Ansible roles.
However a new config report is *not* created when you run just a subset of roles. See reproducing steps.
Version-Release number of selected component (if applicable):
Satellite 6.11
How reproducible:
Always
Steps to Reproduce:
1. Create a job template/playbook that calls one role with fact gathering enabled:
- WebUI --> Hosts --> Job Templates --> run_only_one_role
---
- hosts: all
gather_facts: yes
pre_tasks:
- name: Display all parameters known for the Foreman host
debug:
var: foreman
tags:
- always
tasks:
- name: Apply roles
include_role:
name: "RedHatInsights.insights-client"
2. Configure the job template:
~~~
Job Category: Ansible Playbook
Provider Type: Ansible
~~~
3. Run the playbook on a host:
- WebUI --> All Hosts --> select host --> Select Action --> Schedule Remote Job
~~~
Job Category: Ansible Playbook
Job Template: run_only_one_role
~~~
4. Verify gather_facts was executed successfully:
~~~
1:
[WARNING]: Callback disabled by environment. Disabling the Foreman callback
2:
plugin.
3:
4:
PLAY [all] *********************************************************************
5:
6:
TASK [Gathering Facts] *********************************************************
7:
ok: [jsenkyri-rhel8-sat611.sysmgmt.lan]
...
...
...
PLAY RECAP *********************************************************************
95:
jsenkyri-rhel8-sat611.sysmgmt.lan : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
96:
Exit status: 0
~~~
5. Go to 'WebUI --> Hosts --> All Hosts' and check if 'Last report' column was updated.
Actual results:
'Last report' column was not updated.
Expected results:
'Last report' column should be updated because gather_facts module was executed.
Description of problem: A new config report is created when you run all ansible roles on a particular host: - WebUI --> Hosts --> All Hosts --> select hosts --> Select Action --> Run all Ansible roles. However a new config report is *not* created when you run just a subset of roles. See reproducing steps. Version-Release number of selected component (if applicable): Satellite 6.11 How reproducible: Always Steps to Reproduce: 1. Create a job template/playbook that calls one role with fact gathering enabled: - WebUI --> Hosts --> Job Templates --> run_only_one_role --- - hosts: all gather_facts: yes pre_tasks: - name: Display all parameters known for the Foreman host debug: var: foreman tags: - always tasks: - name: Apply roles include_role: name: "RedHatInsights.insights-client" 2. Configure the job template: ~~~ Job Category: Ansible Playbook Provider Type: Ansible ~~~ 3. Run the playbook on a host: - WebUI --> All Hosts --> select host --> Select Action --> Schedule Remote Job ~~~ Job Category: Ansible Playbook Job Template: run_only_one_role ~~~ 4. Verify gather_facts was executed successfully: ~~~ 1: [WARNING]: Callback disabled by environment. Disabling the Foreman callback 2: plugin. 3: 4: PLAY [all] ********************************************************************* 5: 6: TASK [Gathering Facts] ********************************************************* 7: ok: [jsenkyri-rhel8-sat611.sysmgmt.lan] ... ... ... PLAY RECAP ********************************************************************* 95: jsenkyri-rhel8-sat611.sysmgmt.lan : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 96: Exit status: 0 ~~~ 5. Go to 'WebUI --> Hosts --> All Hosts' and check if 'Last report' column was updated. Actual results: 'Last report' column was not updated. Expected results: 'Last report' column should be updated because gather_facts module was executed.