Description of problem:
When ipa-replica-installed is executed, part of the configuration is to setup PKINIT. In case an IPA CA exists in the topology and the installer has not been executed with --no-pkinit, an IPA CA signed certificate for the KDC is requested through certmonger. In case the CA is not reachable, certmonger creates a self-signed certificate for the KDC. The error message shown on the screen is confusing, because it says that PKINIT onfiguration failed in total:
ERROR PKINIT certificate request failed: Certificate issuance failed (CA_UNREACHABLE)
ERROR Failed to configure PKINIT
Here we should better say that full PKINIT configuration failed but local PKINIT has been configured with a self-signed KDC certificate.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Hello, thought it will be very useful to have steps to reproduce here for a further process.
Steps to reproduce:
1. Get machines for master and replica e.g. with Fedora 25
2. Add freeipa 4.5 copr:
> # dnf copr enable @freeipa/freeipa-4.5
3. Update machines and install ipa-server:
> # dnf update -y && dnf install ipa-server
4. Install master, e.g.:
> master # ipa-server-install --setup-dns --auto-forwarders
5. Add a breakpoint to /usr/lib/python2.7/site-packages/ipaserver/install/krbinstance.py at line 492 right after method definition on replica machine:
> 491: def issue_ipa_ca_signed_pkinit_certs(self):
> 492: import pdb; pdb.set_trace()
6. Run replica installation:
> replica # ipa-client-install
> replica # ipa-replica-install
7. Wait until it will hit a breakpoint and then stop pki-tomcatd@pki-tomcat service on master
> master # systemctl stop pki-tomcatd@pki-tomcat
8. Continue execution on replica.
> ipa : ERROR PKINIT certificate request failed: Certificate issuance failed (CA_UNREACHABLE)
> ipa : ERROR Failed to configure PKINIT
> Here we should better say that full PKINIT configuration failed but local PKINIT has been configured with a self-signed KDC certificate.
Upstream ticket: https://pagure.io/freeipa/issue/7179
verified using steps provided in comment#1
Done configuring certificate server (pki-tomcatd).
Configuring Kerberos KDC (krb5kdc)
[1/1]: installing X509 Certificate for PKINIT
Full PKINIT configuration did not succeed
The setup will only install bits essential to the server functionality
You can enable PKINIT after the setup completed using 'ipa-pkinit-manage'
Done configuring Kerberos KDC (krb5kdc).
Applying LDAP updates
Upgrading IPA:. Estimated time: 1 minute 30 seconds
[1/9]: stopping directory server
[2/9]: saving configuration
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.