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

NAS-130709 / 24.10-RC.1 / Fix LDAP status on failover (by anodos325) #14487

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

bugclerk
Copy link
Contributor

This fix addresses a few minor issues with directory services state recovery.

  1. Rather than simply failing directoryservices.setup if unhealthy, we should take recovery steps

  2. If for some reason SSSD fails to start triggering a health check failure we should go through etc.generate steps to make sure we have all required files written before trying to start it again.

  3. Always generate the nsswitch.conf after setting up directory services. This avoids possibilty of having SSSD / winbind running without them being present in nsswitch.conf on failover.

Original PR: #14480
Jira URL: https://ixsystems.atlassian.net/browse/NAS-130709

This fix addresses a few minor issues with directory services
state recovery.

1. Rather than simply failing directoryservices.setup if
   unhealthy, we should take recovery steps

2. If for some reason SSSD fails to start triggering a health
   check failure we should go through etc.generate steps to
   make sure we have all required files written before trying
   to start it again.

3. Always generate the nsswitch.conf after setting up directory
   services. This avoids possibilty of having SSSD / winbind
   running without them being present in nsswitch.conf on failover.

(cherry picked from commit d9503e8)
@anodos325 anodos325 merged commit 3417bf0 into stable/electriceel Sep 10, 2024
1 of 2 checks passed
@anodos325 anodos325 deleted the NAS-130709-24.10-RC.1 branch September 10, 2024 21:00
@bugclerk
Copy link
Contributor Author

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants