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

Made sssd restart a non-raising opration #86

Closed
wants to merge 1 commit into from
Closed

Made sssd restart a non-raising opration #86

wants to merge 1 commit into from

Conversation

ofayans
Copy link
Contributor

@ofayans ofayans commented Sep 15, 2016

Uninstallation of ipa-server usually removes sssd configuration file,
/etc/sssd/sssd.conf
If we then issue syustemctl restart sssd.service, the command fails because is
unable to find the config file. We need to make this call not raise an
exception

Uninstallation of ipa-server usually removes sssd configuration file,
/etc/sssd/sssd.conf
If we then issue syustemctl restart sssd.service, the command fails because is
unable to find the config file. We need to make this call not raise an
exception
@@ -691,7 +691,7 @@ def uninstall_master(host, ignore_topology_disconnect=True,
"xargs rm -fv", raiseonerr=False)
host.run_command("find /run/ipa -name 'krb5*' | xargs rm -fv",
raiseonerr=False)
host.run_command(['systemctl', 'restart', 'sssd'])
host.run_command(['systemctl', 'restart', 'sssd'], raiseonerr=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we even need to restart SSSD when server is uninstalled?

@MartinBasti
Copy link
Contributor

I was thinking hard about it, if there should be SSSD restart, but I cannot find any case where it is needed after server uninstall

@MartinBasti MartinBasti self-assigned this Sep 15, 2016
@ofayans
Copy link
Contributor Author

ofayans commented Sep 15, 2016

Probably Lenka has some use-case for this. I am pretty sure these lines weren't added just for fun :)

@MartinBasti
Copy link
Contributor

Can wait until Lenka give us the reason?

@ofayans
Copy link
Contributor Author

ofayans commented Sep 15, 2016

sure

@mirielka
Copy link
Contributor

Hi,
so sorry about this, but the necessity of sssd restart was caused by some leftover mess on the machines where I ran the trust related tests. If the configuration is correct and system clean, the restart is not necessary. I recommend rejecting this patch and will provide fix for my error ASAP.

@MartinBasti MartinBasti added the rejected Pull Request has been rejected label Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected Pull Request has been rejected
Projects
None yet
3 participants