Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport][ipa-4-6] ipa-replica-install: make sure that certmonger picks the right master #1716

Closed

Conversation

flo-renaud
Copy link
Contributor

@flo-renaud flo-renaud commented Mar 21, 2018

This PR was opened automatically because PR #1689 was pushed to master and backport to ipa-4-6 is required.

During ipa-replica-install, http installation first creates a service
principal for http/hostname (locally on the soon-to-be-replica), then
waits for this entry to be replicated on the master picked for the
install.
In a later step, the installer requests a certificate for HTTPd. The local
certmonger first tries the master defined in xmlrpc_uri (which is
pointing to the soon-to-be-replica), but fails because the service is not
up yet. Then certmonger tries to find a master by using the DNS and looking
for a ldap service. This step can pick a different master, where the
principal entry has not always be replicated yet.
As the certificate request adds the principal if it does not exist, we can
end by re-creating the principal and have a replication conflict.

The replication conflict later causes kerberos issues, preventing
from installing a new replica.

The proposed fix forces xmlrpc_uri to point to the same master as the one
picked for the installation, in order to make sure that the master already
contains the principal entry.

https://pagure.io/freeipa/issue/7041
@flo-renaud
Copy link
Contributor Author

PR was ACKed automatically because this is backport of PR #1689. Wait for CI to finish before pushing. In case of questions or problems contact @flo-renaud who is author of the original PR.

@flo-renaud flo-renaud added ack Pull Request approved, can be merged pushed Pull Request has already been pushed labels Mar 21, 2018
@flo-renaud
Copy link
Contributor Author

ipa-4-6:

  • 75d8ba8 ipa-replica-install: make sure that certmonger picks the right master

@flo-renaud flo-renaud closed this Mar 22, 2018
@flo-renaud flo-renaud deleted the backport_pr1689_ipa-4-6 branch March 22, 2018 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
1 participant