Bug 574552 - ldap service should start earlier so messagebus doesn't hang
Summary: ldap service should start earlier so messagebus doesn't hang
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: openldap
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Zeleny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-17 19:17 UTC by Andrew McNabb
Modified: 2010-10-22 11:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-27 14:25:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew McNabb 2010-03-17 19:17:43 UTC
I apologize for opening a duplicate bug report, but the others are opened against different components.  I don't feel too bad because bug #182464, bug #186527, and bug #502072 are all about the same problem.  I'm not quite sure why they all haven't been merged yet, but currently two of them are opened against nss_ldap and one is open against messagebus.  They've been open since 2006 and have dozens of users cc'd.

Anyway, as discussed in the comments on bug #186527, one simple and effective workaround is simply to move the LDAP service earlier in the boot order.  I tried moving it to S21slapd (just before S22messagebus), and Andrew Meredith tried putting it at S12slapd.

Would there be any drawbacks to moving the slapd service to start before messagebus?  Would this be a reasonable change to consider for Fedora 13?  If this would not be an acceptable solution, then feel free to close this bug, but please also comment on bug #182464, bug #186527, and bug #502072.  It would be great to see a resolution for this longstanding problem.  Thanks.

Comment 1 Fedora Update System 2010-03-19 09:51:43 UTC
openldap-2.4.21-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/openldap-2.4.21-6.fc13

Comment 2 Fedora Update System 2010-03-23 01:55:32 UTC
openldap-2.4.21-6.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update openldap'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/openldap-2.4.21-6.fc13

Comment 3 Jan Zeleny 2010-03-24 15:26:04 UTC
Please see referenced update page for additional information about the change you requested. Any feedback there would be also useful. Thanks

Comment 4 Jan Zeleny 2010-05-27 14:25:35 UTC
The update has been deleted and this bug will be closed. The reason is that moving openldap earlier in starting sequence could make a great mess, because it depends on network filesystems (in case openldap is on /usr which is mounted from network).

Comment 5 Yurii K 2010-10-22 11:44:21 UTC
You have to change header of slapd start script in /etc/rc.d/init.d/slapd
search string and change there

      file consist             what to do or comments

#
#chkconfig: 345 20 80          "20 - must be low then in messagebus script"
#
#BEGIN INIT INFO
#Required-Start:               "clean this text"
#Required-Stop:                "this text mast be clean too"
#
.....

Then you have to change nssswith.conf

passwd: files[UNAVAIL=return]ldap
shadow: files[UNAVAIL=return]ldap
group: files[UNAVAIL=return]ldap

When I have made this on FC13 and FC9, both system became quickly boot.


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