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.
Bug 2139448 - Host Config Reports are not created when ansible role(s) are called outside of 'Run all Ansible roles'
Summary: Host Config Reports are not created when ansible role(s) are called outside o...
Keywords:
Status: CLOSED DUPLICATE of bug 2116369
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible - Configuration Management
Version: 6.11.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: addubey
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-02 15:13 UTC by Jan Senkyrik
Modified: 2023-03-06 09:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-06 09:22:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Senkyrik 2022-11-02 15:13:49 UTC
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.

Comment 1 nalfassi 2023-03-05 13:15:06 UTC
I believe this is a duplicate of Bug 2116369.
May I close it?

Comment 2 Jan Senkyrik 2023-03-06 08:42:51 UTC
Indeed, that looks like a match.

Feel free to close this BZ then, thanks.

Comment 3 nalfassi 2023-03-06 09:22:02 UTC

*** This bug has been marked as a duplicate of bug 2116369 ***


Note You need to log in before you can comment on or make changes to this bug.