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
ipa-replica-prepare fix #574
Conversation
Fixes an issue introduced in 0a54fac, we need to specify the current master's hostname so that we know to which CA we need to connect to create the other's server Server-Cert. https://pagure.io/freeipa/issue/6755
ipaserver/install/certs.py
Outdated
| for fname in (self.certreq_fname, self.certder_fname): | ||
| try: | ||
| os.unlink(fname) | ||
| except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shame! Too broad exception, use OSError instead
This should help debugging issues that could happen during server certificate creation. https://pagure.io/freeipa/issue/6755
|
Can be this caused by your patch? debug |
|
Very unlikely but I'll investigate. |
|
My wild guess is that it might be caused by ba3c201 but not by this patchset as it does not touch it. |
|
Actually, this is most probably a privilege-separation issue since "kdc.pem" which we try to read here does not exist ever since. edit: Scratch that, I have no idea whether this ever worked. |
|
@MartinBasti should be fixed in #580 |
A regression was introduced in 0a54fac. Fix + don't fail if either file was not created during server-cert creation.