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 1376226 - IPA replica-prepare failed with error "Profile caIPAserviceCert Not Found"
Summary: IPA replica-prepare failed with error "Profile caIPAserviceCert Not Found"
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 7.4
Assignee: Fraser Tweedale
QA Contact: Abhijeet Kasurde
Marc Muehlfeld
Depends On:
TreeView+ depends on / blocked
Reported: 2016-09-14 23:33 UTC by Matthew Harmsen
Modified: 2020-10-04 21:14 UTC (History)
4 users (show)

Fixed In Version: pki-core-10.4.0-1.el7
Doc Type: Bug Fix
Doc Text:
PKI Server no longer fails to re-initialize the `LDAPProfileSubsystem` profile Due to a race condition during re-initializing the `LDAPProfileSubsystem` profile, PKI Server previously could incorrectly reported that the requested profile does not exist. Consequently, requests to use the profile could fail. The problem has been fixed, and requests to use the profile no longer fail.
Clone Of:
Last Closed: 2017-08-01 22:46:01 UTC
Target Upstream Version:

Attachments (Terms of Use)
verification_console.log (22.72 KB, text/plain)
2017-06-12 11:58 UTC, Abhijeet Kasurde
no flags Details

System ID Private Priority Status Summary Last Updated
Github dogtagpki pki issues 2573 0 None None None 2020-10-04 21:14:37 UTC
Red Hat Product Errata RHBA-2017:2110 0 normal SHIPPED_LIVE pki-core bug fix and enhancement update 2017-08-01 19:36:59 UTC

Description Matthew Harmsen 2016-09-14 23:33:20 UTC
Please see IPA related ticket: https://fedorahosted.org/freeipa/ticket/6274
It looks for me the same issue as this reported in past: https://fedorahosted.org/pki/ticket/1702

"caIPAServiceCert" is default profile for IPA, should always exists.

This is reproducible in our CI test automation, it looks like dogtag is reporting that ready to serve, but when we execute ipa-replica-prepare too early, it fails with error "Profile caIPAserviceCert Not Found". Manually it works when delay between dogtag restart during ipa-server-install and ipa-replica-prepare is longer.

PS: we check dogtag status using http polling.

Comment 2 Matthew Harmsen 2016-09-14 23:42:34 UTC
Consider this for a RHEL 7.3-Z stream patch.

Comment 4 Matthew Harmsen 2016-09-23 20:59:23 UTC
Pushed to master (ced5cb71c1963d5234c2360d1f2ac11d4a452d9d)

Comment 6 Geetika Kapoor 2017-05-17 08:39:45 UTC
Hello Fraser,

How to test this scenario? In 7.4 , i don't think we need to do replica-prepare.
I think issue is reported during replica-prepare as mentioned in  https://pagure.io/freeipa/issue/6274


Comment 7 Fraser Tweedale 2017-05-26 08:43:17 UTC
Geetika, this will be difficult to test.  It was a race condition
that could occur during profile reload e.g. after LDAP disconnection.

The reason for this particular symtom (ipa-replica-prepare failure) was that
the LDAP server gets restarted as a final step of server installation, and
the CI system ran ipa-replica-prepare immediately afterwards.  The certificate
issuance that occurs as part of ipa-replica-prepare failed because the
caIPAserviceCert was temporarily unavailable while the profile subsystem
refreshed its view of the profile in LDAP (due to server disconnect).

So, how to test:

1. install a pre-RHEL7.3 master (domain level 0)

2. install a RHEL7.4 replica (which will also be domain level 0)

3. on the replica, *immediately* after installation (i.e. it should
   be scripted), run ipa-replica-prepare for some third host.  It
   should succeed.  Because it is a race condition you should do this
   a few times to be truly satisfied that the issue has been resolved.

Hope that helps!

Comment 8 Abhijeet Kasurde 2017-06-12 11:58:09 UTC
Verified using PKI version :: pki-server-10.4.1-8.el7.noarch

Marking BZ as verified. As comment #7, tried on ipa-replica-prepare with several RHEL 7.4 servers. Each time ipa-replica-prepare was successful. See attachment for console.log.

Comment 9 Abhijeet Kasurde 2017-06-12 11:58:58 UTC
Created attachment 1287042 [details]

Comment 12 errata-xmlrpc 2017-08-01 22:46:01 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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