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 1963851 - CA instance creation fails for IPA install
Summary: CA instance creation fails for IPA install
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pki-servlet-engine
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Coty Sutherland
QA Contact: PKI QE
URL:
Whiteboard:
Depends On:
Blocks: 1925311
TreeView+ depends on / blocked
 
Reported: 2021-05-24 08:19 UTC by Kaleem
Modified: 2021-12-07 21:22 UTC (History)
6 users (show)

Fixed In Version: pki-servlet-engine-9.0.30-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-07 21:20:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache Bugzilla 65332 0 None None None 2021-05-25 18:58:44 UTC

Description Kaleem 2021-05-24 08:19:59 UTC
Description of problem:

CA instance creation fails for IPA install with following error message
[root@master pki]# tail -f /var/log/ipaserver-install.log 
  File "/usr/lib/python3.9/site-packages/ipaserver/install/cainstance.py", line 617, in __spawn_instance
    DogtagInstance.spawn_instance(
  File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 209, in spawn_instance
    self.handle_setup_error(e)
  File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 561, in handle_setup_error
    raise RuntimeError(

2021-05-24T07:22:28Z DEBUG The ipa-server-install command failed, exception: RuntimeError: CA configuration failed.
2021-05-24T07:22:28Z ERROR CA configuration failed.
2021-05-24T07:22:28Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

[root@master pki]# tail -f pki-ca-spawn.20210524032140.log 
2021-05-24 03:22:14 DEBUG: Command: /usr/sbin/runuser -u pkiuser -- /usr/lib/jvm/java-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-db-vlv-reindex --debug
2021-05-24 03:22:16 INFO: Loading subsystem config: /var/lib/pki/pki-tomcat/ca/conf/CS.cfg
2021-05-24 03:22:16 INFO: Loading subsystem registry: /var/lib/pki/pki-tomcat/ca/conf/registry.cfg
2021-05-24 03:22:16 DEBUG: Command: /usr/sbin/runuser -u pkiuser -- /usr/lib/jvm/java-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-profile-import --input-folder /usr/share/pki/ca/profiles/ca --debug
2021-05-24 03:22:18 INFO: Enabling CA subsystem
2021-05-24 03:22:18 INFO: Creating /etc/pki/pki-tomcat/Catalina/localhost/ca.xml
2021-05-24 03:22:18 INFO: Starting PKI server
2021-05-24 03:22:18 DEBUG: Command: systemctl start pki-tomcatd
2021-05-24 03:22:20 INFO: Waiting for PKI server to start
2021-05-24 03:22:21 INFO: Waiting for PKI server to start (1s)


Version-Release number of selected component (if applicable):
[root@master pki]# rpm -q ipa-server pki-ca
ipa-server-4.9.3-2.el9.x86_64
pki-ca-10.11.0-0.1.alpha1.el9.noarch
[root@master pki]# 

How reproducible:
Always

Steps to Reproduce:
1. Install IPA 
2.
3.

Actual results:
CA creation fails during IPA install 

Expected results:
CA creation should be successful during IPA install 

Additional info:

snippet from /var/log/messages:

May 24 03:22:11 localhost ns-slapd[21543]: [24/May/2021:03:22:11.721711373 -0400] - ERR - ipa-topology-plugin - ipa_topo_be_state_change - backend ipaca is coming online; checking domain level and init shared topology
May 24 03:22:11 localhost ns-slapd[21543]: [24/May/2021:03:22:11.725271089 -0400] - DEBUG - NSMMReplicationPlugin - replica_get_replica_from_dn: failed to locate replication extension of mapping tree node for o=ipaca
May 24 03:22:11 localhost ns-slapd[21543]: [24/May/2021:03:22:11.726959782 -0400] - ERR - cos-plugin - cos_dn_defs_cb - Skipping CoS Definition cn=Password Policy,cn=accounts,dc=testrelm,dc=test--no CoS Templates found, which should be added before the CoS Definition.

May 24 03:22:27 localhost server[22041]: SEVERE: Javac exception
May 24 03:22:27 localhost server[22041]: Error starting modern compiler

May 24 03:22:27 localhost server[22041]: #011at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)


May 24 03:22:27 localhost server[22041]: SEVERE: Error compiling file: [/var/lib/pki/pki-tomcat/work/Catalina/localhost/ROOT/org/apache/jsp/index_jsp.java] [    [javac] warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

Comment 2 Endi Sukma Dewata 2021-05-24 14:37:20 UTC
Coty, could you take a look at this? Thanks!

Comment 3 Coty Sutherland 2021-05-24 15:49:42 UTC
It looks like your catalina.policy might need some tweaking. How long has this been happening? Did it work on previous version? I don't see anything in the recent changelog that jumped out at me. Can you share your global web.xml and ROOT webapp's web.xml?


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