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
Don't allow standalone KRA uninstalls #556
Conversation
ipaserver/install/ipa_kra_install.py
Outdated
| return KRAUninstaller | ||
| raise RuntimeError( | ||
| 'Standalone KRA uninstalling was removed in FreeIPA 4.5 as it ' | ||
| 'had never worker properly and only caused issues.') |
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.
Please improve the error message text:
uninstalling -> uninstallation
had -> has
worker -> worked
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.
Perhaps uninstallation is the better word here, thanks for finding the typo as well. However, had is used properly, check your grammar ;)
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.
Grammar has been checked. You're indeed correct :)
ipaserver/install/ipa_kra_install.py
Outdated
| @@ -83,33 +83,13 @@ def validate_options(self, needs_root=True): | |||
| @classmethod | |||
| def get_command_class(cls, options, args): | |||
| if options.uninstall: | |||
| return KRAUninstaller | |||
| raise RuntimeError( | |||
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.
ipa-kra-install --uninstall prints a traceback instead of just showing the error message.
|
You should also remove: |
|
Should be fixed now, had to add |
|
|
|
@MartinBasti unfortunately not. |
|
Waiting for more opinions about removing KRA --uninstall |
|
OK, so this pr removes |
| return KRAUninstaller | ||
| sys.exit( | ||
| 'ERROR: Standalone KRA uninstallation was removed in ' | ||
| 'FreeIPA 4.5 as it had never worked properly and only caused ' |
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 would change the wording to ERROR: Standalone KRA uninstallation was removed in FreeIPA 4.5 without extra information about how broken it was
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.
Some kind of reason should be provided. Perhaps we can reword it to "...as it was a potential cause of issues."
|
needs rebase |
KRA uninstallation is very likely to break the user's setup. Don't allow it at least till we can be safely sure we are able to remove it in a standalone manner without breaking anything. https://pagure.io/freeipa/issue/6538
|
Rebased. |
|
master:
|
KRA uninstallation is very likely to break the user's setup. Don't
allow it at least till we can be safely sure we are able to remove
it in a standalone manner without breaking anything.
https://pagure.io/freeipa/issue/6538