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
Add force-join option to replica install #691
Conversation
ipaserver/install/server/__init__.py
Outdated
| @@ -177,6 +176,9 @@ class ServerInstallInterface(ServerCertificateInstallInterface, | |||
| preserve_sssd = False | |||
| no_sssd = False | |||
|
|
|||
| force_join = client.ClientInstallInterface.force_join | |||
| force_join = replica_install_only(force_join) | |||
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.
This bit seems to be unnecessary, since you are masking force_join in ServerMasterInstall with a constant.
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.
Right. I meant to provide a more general approach but it probably does not make much sense here.
ipaserver/install/server/__init__.py
Outdated
| @@ -595,6 +595,8 @@ class ServerReplicaInstall(ServerReplicaInstallInterface): | |||
| subject_base = None | |||
| ca_subject = None | |||
|
|
|||
| force_join = client.ClientInstallInterface.force_join | |||
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.
I meant this bit as well, force_join is already present in ServerReplicaInstall through inheritance.
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.
Bah, I must be broken today, you're right, of course.
When installing client from inside replica installation on DL1, it's possible that the client installation would fail and recommend using --force-join option which is not available in replica installer. Add the option there. https://pagure.io/freeipa/issue/6183
The exception handling of client install inside replica installation was rather promiscuous, hungrily eating any possible exception thrown at it. Scoped down the try-except block and reduced its promiscuity. This change should improve the future development experience debugging this part of the code. https://pagure.io/freeipa/issue/6183
This patchset adds the force-join option to the replica installer. It also tries to improve the developer's experience by narrowing down the scope of originally an all-eating try-except block.