#4113 SSSD notifies systemd before the backend is online
Closed: cloned-to-github a year ago by pbrezina. Opened a year ago by bram.

SSSD uses the sd_notify (https://www.freedesktop.org/software/systemd/man/sd_notify.html) system to notify systemd. Typically systemd starts serivces that depend on SSSD (such as autofs and gdm) after SSSD. SSSD sends the notification before the backend is online

If autofs is started immediately after SSSD this can cause some problems with autofs starting very slowly or not loading the maps altogether. An example is here: https://bugzilla.redhat.com/show_bug.cgi?id=1648521 . We had several similar issues the last couple of years. It's not always easy to reproduce because the timing can change a bit every startup (how fast the IPA server responds etc..). The problem can come and go. If we configure autofs to wait 5 seconds before it starts, everything works reliably in our setup.

The root cause of the problem looks like SSSD notifies before the backend is online. Is it possible to notify systemd at a later stage, when the backend is online? If you are willing to accept such a patch, I can look into writing it myself.

Metadata Update from @thalman:
- Issue tagged with: bugzilla

a year ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/5074

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @pbrezina:
- Issue close_status updated to: cloned-to-github
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.