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 2001814 - Reinstall of the same ipa-replica fails with 'RuntimeError: CA configuration failed.'
Summary: Reinstall of the same ipa-replica fails with 'RuntimeError: CA configuration ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pki-core
Version: 9.0
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: rc
: ---
Assignee: Endi Sukma Dewata
QA Contact: PKI QE
lmcgarry
URL:
Whiteboard:
: 2001813 (view as bug list)
Depends On:
Blocks: 2023890 2184521
TreeView+ depends on / blocked
 
Reported: 2021-09-07 09:07 UTC by Sudhir Menon
Modified: 2023-04-21 12:38 UTC (History)
10 users (show)

Fixed In Version: pki-core-11.0.1-3.el9
Doc Type: Known Issue
Doc Text:
Clone Of:
: 2023890 2184521 (view as bug list)
Environment:
Last Closed: 2022-05-17 12:41:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-96388 0 None None None 2021-09-07 09:56:06 UTC
Red Hat Product Errata RHBA-2022:2376 0 None None None 2022-05-17 12:41:54 UTC

Description Sudhir Menon 2021-09-07 09:07:33 UTC
Description of problem: Reinstall of the same replica fails with  'RuntimeError: CA configuration failed.'

Version-Release number of selected component (if applicable):
ipa-server-4.9.6-6.el9.x86_64
pki-server-11.0.0-0.4.alpha1.el9.noarch
pki-ca-11.0.0-0.4.alpha1.el9.noarch
pki-kra-11.0.0-0.4.alpha1.el9.noarch
389-ds-base-2.0.8-4.el9.x86_64
selinux-policy-34.1.14-1.el9.noarch

How reproducible: Always

Steps to Reproduce:
1. Install IPA server and replica.
2. Uninstall IPA Replica and reinstall replica again.

Actual results:
Done configuring ipa-custodia.
Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes
  [1/29]: creating certificate server db
  [2/29]: setting up initial replication
Starting replication, please wait until this has completed.
Update in progress, 5 seconds elapsed
Update succeeded
 
  [3/29]: creating ACIs for admin
  [4/29]: creating installation admin user
  [5/29]: configuring certificate server instance
Failed to configure CA instance
See the installation logs and the following files/directories for more information:
  /var/log/pki/pki-tomcat
  [error] RuntimeError: CA configuration failed.
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

com.netscape.certsrv.base.ConflictingOperationException: Entry already exists.
	at com.netscape.certsrv.ldap.LDAPExceptionConverter.toPKIException(LDAPExceptionConverter.java:45)
	at com.netscape.cmscore.usrgrp.UGSubsystem.addUser(UGSubsystem.java:720)
	at org.dogtagpki.server.cli.SubsystemUserAddCLI.execute(SubsystemUserAddCLI.java:180)
	at org.dogtagpki.cli.CommandCLI.execute(CommandCLI.java:58)
	at org.dogtagpki.cli.CLI.execute(CLI.java:357)
	at org.dogtagpki.cli.CLI.execute(CLI.java:357)
	at org.dogtagpki.cli.CLI.execute(CLI.java:357)
	at org.dogtagpki.server.cli.PKIServerCLI.execute(PKIServerCLI.java:93)
	at org.dogtagpki.server.cli.PKIServerCLI.main(PKIServerCLI.java:123)
Caused by: netscape.ldap.LDAPException: error result (68); Already exists
	at netscape.ldap.LDAPConnection.checkMsg(Unknown Source)
	at netscape.ldap.LDAPConnection.add(Unknown Source)
	at netscape.ldap.LDAPConnection.add(Unknown Source)
	at netscape.ldap.LDAPConnection.add(Unknown Source)
	at com.netscape.cmscore.usrgrp.UGSubsystem.addUser(UGSubsystem.java:717)
	... 7 more
CalledProcessError: Command '['/usr/sbin/runuser', '-u', 'pkiuser', '--', '/usr/lib/jvm/jre-11-openjdk/bin/java', '-classpath', '/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/tomcat-servlet-api.jar:/usr/share/pki/ca/webapps/ca/WEB-INF/lib/*:/var/lib/pki/pki-tomcat/common/lib/*:/usr/share/pki/lib/*', '-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory', '-Dcatalina.base=/var/lib/pki/pki-tomcat', '-Dcatalina.home=/usr/share/tomcat', '-Djava.endorsed.dirs=', '-Djava.io.tmpdir=/var/lib/pki/pki-tomcat/temp', '-Djava.util.logging.config.file=/etc/pki/pki-tomcat/logging.properties', '-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager', '-Dcom.redhat.fips=false', 'org.dogtagpki.server.cli.PKIServerCLI', 'ca-user-add', '--full-name', 'CA-replica.testrealm.test-8443', '--type', 'agentType', '--state', '1', '--debug', 'CA-replica.testrealm.test-8443']' returned non-zero exit status 255.
  File "/usr/lib/python3.9/site-packages/pki/server/pkispawn.py", line 575, in main
    scriptlet.spawn(deployer)
  File "/usr/lib/python3.9/site-packages/pki/server/deployment/scriptlets/configuration.py", line 740, in spawn
    deployer.setup_subsystem_user(instance, subsystem, system_certs['subsystem'])
  File "/usr/lib/python3.9/site-packages/pki/server/deployment/__init__.py", line 1036, in setup_subsystem_user
    subsystem.add_user(
  File "/usr/lib/python3.9/site-packages/pki/server/subsystem.py", line 1515, in add_user
    self.run(
  File "/usr/lib/python3.9/site-packages/pki/server/subsystem.py", line 1646, in run
    return subprocess.run(
  File "/usr/lib64/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,

---ipareplica-install.log---
2021-09-07T07:40:22Z CRITICAL Failed to configure CA instance
2021-09-07T07:40:22Z CRITICAL See the installation logs and the following files/directories for more information:
2021-09-07T07:40:22Z CRITICAL   /var/log/pki/pki-tomcat
2021-09-07T07:40:22Z DEBUG Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/ipaserver/install/service.py", line 635, in start_creation
    run_step(full_msg, method)
  File "/usr/lib/python3.9/site-packages/ipaserver/install/service.py", line 621, in run_step
    method()
  File "/usr/lib/python3.9/site-packages/ipaserver/install/cainstance.py", line 627, in __spawn_instance
    DogtagInstance.spawn_instance(
  File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 213, in spawn_instance
    self.handle_setup_error(e)
  File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 565, in handle_setup_error
    raise RuntimeError(
RuntimeError: CA configuration failed.

Expected results: replica-install should pass without the above error.

Additional info:https://github.com/dogtagpki/pki/issues/3544

Comment 1 Sudhir Menon 2021-09-07 11:01:52 UTC
*** Bug 2001813 has been marked as a duplicate of this bug. ***

Comment 7 Endi Sukma Dewata 2021-11-02 19:20:48 UTC
Fixed in master branch (PKI 11.1):
https://github.com/dogtagpki/pki/commit/ec45bb54d79f6b8a8fc63245c75a087946433e30

Comment 8 Endi Sukma Dewata 2021-11-02 22:47:05 UTC
Fixed in v11.0 branch (PKI 11.0):
https://github.com/dogtagpki/pki/commit/6748b681172f418e217f6914edd6e939ebdf7acb

Comment 26 errata-xmlrpc 2022-05-17 12:41:22 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 (new packages: pki-core), 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-2022:2376


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