Bug 2214284 - rhc system role does not apply Insights tags [rhel-9.2.0.z]
Summary: rhc system role does not apply Insights tags [rhel-9.2.0.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rhel-system-roles
Version: 9.2
Hardware: All
OS: All
high
low
Target Milestone: rc
: 9.2
Assignee: Rich Megginson
QA Contact: Jakub Haruda
URL:
Whiteboard: role:rhc
Depends On: 2209200
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-12 13:18 UTC by RHEL Program Management Team
Modified: 2023-08-08 15:02 UTC (History)
12 users (show)

Fixed In Version: rhel-system-roles-1.21.2-1.el9_2
Doc Type: Bug Fix
Doc Text:
Clone Of: 2209200
Environment:
Last Closed: 2023-08-01 08:58:56 UTC
Type: ---
Target Upstream Version:
Embargoed:
arpandey: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-159520 0 None None None 2023-06-12 13:53:50 UTC
Red Hat Product Errata RHBA-2023:4362 0 None None None 2023-08-01 08:58:58 UTC

Comment 6 Archana Pandey 2023-06-16 16:28:01 UTC
verifying the issue on rhel-system-roles-1.21.2-1.el9_2.noarch

[root@kvm-07-guest03 ~]# rpm -qa rhel-system-roles
rhel-system-roles-1.21.2-1.el9_2.noarch
[root@kvm-07-guest03 ~]#

>> running playbook to register to insights and apply tags- 

[root@kvm-07-guest03 ~]# ansible-playbook test_tags_rhc.yaml 
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Register with activation key] **********************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************
ok: [localhost]

TASK [Register (using activation keys)] ******************************************************************************************************************************************************

TASK [rhel-system-roles.rhc : Set ansible_facts required by role] ****************************************************************************************************************************
included: /usr/share/ansible/roles/rhel-system-roles.rhc/tasks/set_vars.yml for localhost

TASK [rhel-system-roles.rhc : Ensure ansible_facts used by role] *****************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Check if insights-packages are installed] **********************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Handle insights unregistration] ********************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Handle system subscription] ************************************************************************************************************************************
included: /usr/share/ansible/roles/rhel-system-roles.rhc/tasks/subscription-manager.yml for localhost

TASK [rhel-system-roles.rhc : Ensure required packages are installed] ************************************************************************************************************************
ok: [localhost]

TASK [rhel-system-roles.rhc : Get subscription status] ***************************************************************************************************************************************
ok: [localhost]

TASK [rhel-system-roles.rhc : Change rhsm.baseurl] *******************************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Call subscription-manager] *************************************************************************************************************************************
changed: [localhost]

TASK [rhel-system-roles.rhc : Set the release] ***********************************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Unset the release] *********************************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Configure repositories] ****************************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Handle insights registration] **********************************************************************************************************************************
included: /usr/share/ansible/roles/rhel-system-roles.rhc/tasks/insights-client.yml for localhost

TASK [rhel-system-roles.rhc : Ensure required packages are installed] ************************************************************************************************************************
ok: [localhost]

TASK [rhel-system-roles.rhc : Call insights status] ******************************************************************************************************************************************
included: /usr/share/ansible/roles/rhel-system-roles.rhc/tasks/check-insights-status.yml for localhost

TASK [rhel-system-roles.rhc : Call insights status] ******************************************************************************************************************************************
ok: [localhost]

TASK [rhel-system-roles.rhc : Add insights tags] *********************************************************************************************************************************************
changed: [localhost]

TASK [rhel-system-roles.rhc : Delete insights tags] ******************************************************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Configure autoupdate] ******************************************************************************************************************************************
changed: [localhost]

TASK [rhel-system-roles.rhc : Register insights-client] **************************************************************************************************************************************
changed: [localhost]

TASK [rhel-system-roles.rhc : Do the collection if insights-client was registered] ***********************************************************************************************************
skipping: [localhost]

TASK [rhel-system-roles.rhc : Ensure worker and ansible packages are installed] **************************************************************************************************************
changed: [localhost]

TASK [rhel-system-roles.rhc : Enable remediation] ********************************************************************************************************************************************
changed: [localhost]

TASK [rhel-system-roles.rhc : Disable remediation] *******************************************************************************************************************************************
skipping: [localhost]

PLAY RECAP ***********************************************************************************************************************************************************************************
localhost                  : ok=15   changed=6    unreachable=0    failed=0    skipped=10   rescued=0    ignored=0   

[root@kvm-07-guest03 ~]# hostname
kvm-07-guest03.hv2.lab.eng.bos.redhat.com
[root@kvm-07-guest03 ~]# 
[root@kvm-07-guest03 ~]# 

>> Attaching screenshots to verify if tags were applied- All four tags applied successfully.
 attachment 1971196 [details]

Comment 7 Rich Megginson 2023-06-21 23:44:36 UTC
Please mark this BZ as VERIFIED

Comment 14 errata-xmlrpc 2023-08-01 08:58:56 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 (rhel-system-roles bug fix 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-2023:4362


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