Bug 1315958 - slapd fails to start on boot
Summary: slapd fails to start on boot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap
Version: 7.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Matus Honek
QA Contact: Patrik Kis
URL:
Whiteboard:
: 1383666 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-09 06:45 UTC by Arpit Tolani
Modified: 2019-12-16 05:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: system configured without NetworkManager Consequence: slapd fails to wait on NetworkManager-wait-online.service when booting Fix: use systemd's network-online.target Result: slapd correctly starts on boot even when a system is configured without NetworkManager
Clone Of:
Environment:
Last Closed: 2016-11-03 23:41:48 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1198781 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHBA-2016:2163 0 normal SHIPPED_LIVE openldap bug fix and enhancement update 2016-11-03 13:14:42 UTC

Internal Links: 1198781

Description Arpit Tolani 2016-03-09 06:45:27 UTC
Description of problem:
After upgrade to RHEL 7.2, slapd service no longer starts on boot. Doing service slapd start after the system is up, brings it right up.

Version-Release number of selected component (if applicable):
openldap-servers-2.4.40-8.el7.x86_64

How reproducible:
Everytime in customer environment. 

Steps to Reproduce:
1. Upgrade to this version of openldap.
2. Reboot.
3. Watch the boot process (slapd fails to start).
4. Run systemctl status slapd.service.
  
Actual results:
Does not start.

Expected results:
Worked fine before upgrade.

Additional info:
This is related to https://bugzilla.redhat.com/show_bug.cgi?id=946921

After updating openldap-servers package, /usr/lib/systemd/system/slapd.service file got modified as :

/usr/lib/systemd/system/slapd.service
[Unit]
Description=OpenLDAP Server Daemon
After=syslog.target NetworkManager-wait-online.service	<------

I think the correct solution for this should be to use After=syslog.target network-online.target

Customer tried to change it to network-online.target & it worked.

Comment 6 Matus Honek 2016-10-11 12:13:26 UTC
*** Bug 1383666 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2016-11-03 23:41:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2163.html


Note You need to log in before you can comment on or make changes to this bug.