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 - certificate role: The role is not idempotent in rhel7
Summary: certificate role: The role is not idempotent in rhel7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.3
Assignee: Pavel Cahyna
QA Contact: anuja
URL:
Whiteboard: role:certificate
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-22 12:04 UTC by anuja
Modified: 2022-08-02 18:18 UTC (History)
3 users (show)

Fixed In Version: rhel-system-roles-1.0-17.el8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 04:03:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
console logs (13.09 KB, text/plain)
2020-08-24 12:03 UTC, anuja
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles certificate pull 55 0 None closed Fix idempotency issue with earlier versions of certmonger. 2020-11-05 18:28:23 UTC
Github linux-system-roles certificate pull 58 0 None closed Fix idempotence issue with python version < 3.5 2020-11-04 16:21:52 UTC
Red Hat Product Errata RHEA-2020:4809 0 None None None 2020-11-04 04:03:57 UTC

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


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