Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1730700 - no proper error message for invalid keysize during IPA install using --pki-config-override
Summary: no proper error message for invalid keysize during IPA install using --pki-co...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pki-core
Version: 8.1
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.0
Assignee: RHCS Maintainers
QA Contact: PKI QE
Depends On:
Blocks: 1730389
TreeView+ depends on / blocked
Reported: 2019-07-17 11:54 UTC by Thomas Woerner
Modified: 2021-02-01 14:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1730389
Last Closed: 2021-02-01 07:42:14 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

Description Thomas Woerner 2019-07-17 11:54:00 UTC
+++ This bug was initially created as a clone of Bug #1730389 +++

Description of problem:

No proper error message shown when there is invalid keysize in override.ini provided.

[root@master ~]# /usr/sbin/ipa-server-install --hostname=`hostname` -r TESTRELM.TEST -n testrelm.test -p xxxxxxx -a xxxxxxx -U --pki-config-override=/root/override.ini
Done configuring kadmin.
Configuring ipa-custodia
  [1/5]: Making sure custodia container exists
  [2/5]: Generating ipa-custodia config file
  [3/5]: Generating ipa-custodia keys
  [4/5]: starting ipa-custodia 
  [5/5]: configuring ipa-custodia to start on boot
Done configuring ipa-custodia.
Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes
  [1/30]: configuring certificate server instance
Failed to configure CA instance: CalledProcessError(Command ['/usr/sbin/pkispawn', '-s', 'CA', '-f', '/tmp/tmp5nix2ehl'] returned non-zero exit status 1: 'File already exists: /etc/pki/pki-tomcat/server.xml\nFile already exists: /etc/pki/pki-tomcat/tomcat.conf\nNotice: Trust flag u is set automatically if the private key is present.\n')
See the installation logs and the following files/directories for more information:
  [error] RuntimeError: CA configuration failed.
CA configuration failed.
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
(failed reverse-i-search)`unisnt': ipa-server-install --^Cinstall -U
[root@master ~]# cat override.ini 
[root@master ~]#

Version-Release number of selected component (if applicable):
[root@master ~]# rpm -q ipa-server
[root@master ~]# 

How reproducible:

Steps to Reproduce:
1. Install IPA with invalid keysize using no proper --pki-config-override

Actual results:
Installation fails with no proper error message

Expected results:
Proper error message should be shown

Comment 3 RHEL Program Management 2021-02-01 07:42:14 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

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