Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1859547

Summary: certificate role: The role is not idempotent in rhel7
Product: Red Hat Enterprise Linux 8 Reporter: anuja <amore>
Component: rhel-system-rolesAssignee: Pavel Cahyna <pcahyna>
Status: CLOSED ERRATA QA Contact: anuja <amore>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: djez, rjeffman, rmeggins
Target Milestone: rcKeywords: Rebase
Target Release: 8.3Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:certificate
Fixed In Version: rhel-system-roles-1.0-17.el8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 04:03:45 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:
Attachments:
Description Flags
console logs none

Description anuja 2020-07-22 12:04:28 UTC
Description of problem:
The role is not idempotent in rhel7

Steps to Reproduce:
Running any of tests/tests_*.yml more then once keeps returning changed=1 in rhel7

The expected result is that after the first run the next executions would have changed=0

Reproducible by:

ansible-playbook --become -i <host_ip>, tests/tests_basic_self_signed.ym

Recap for first run:

PLAY RECAP ***********************************************************************************************
192.168.124.189            : ok=28   changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

Recap for second (or third...) run:

PLAY RECAP ***********************************************************************************************
192.168.124.189            : ok=28   changed=5    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

Comment 1 Rafael Jeffman 2020-08-07 19:56:01 UTC
There is an upstream PR: https://github.com/linux-system-roles/certificate/pull/55

Comment 2 Rafael Jeffman 2020-08-20 11:48:30 UTC
The upstream PR has changed to https://github.com/linux-system-roles/certificate/pull/58

It is already merged.

Comment 6 anuja 2020-08-24 12:01:26 UTC
Verified using :
RHEL8.3 and RHEL7.9
using : rhel-system-roles-1.0-17.el8.noarch
__________________________________________________________________________________________________________________
Ran playbook first time:

PLAY RECAP ***************************************************************************************************************************************
10.0.153.135               : ok=28   changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
__________________________________________________________________________________________________________________
Ran playbook second time:

PLAY RECAP ***************************************************************************************************************************************
10.0.153.135               : ok=28   changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
__________________________________________________________________________________________________________________
Ran playbook third time:

PLAY RECAP ***************************************************************************************************************************************
10.0.153.135               : ok=28   changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

[root@client tests]# rpm -qa rhel-system-roles
rhel-system-roles-1.0-17.el8.noarch
[root@client tests]# 

Attaching console logs.

Comment 7 anuja 2020-08-24 12:03:07 UTC
Created attachment 1712346 [details]
console logs

Comment 10 errata-xmlrpc 2020-11-04 04:03:45 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 and enhancement 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/RHEA-2020:4809