Bug 606439

Summary: Creating server instance with LDAPI takes too long.
Product: [Retired] 389 Reporter: Endi Sukma Dewata <edewata>
Component: Install/UninstallAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: low Docs Contact:
Priority: high    
Version: 1.2.6CC: amsharma, jgalipea, rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 16:49:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 576869, 639035    
Attachments:
Description Flags
scripts.tar.gz
none
Patch nhosoi: review+

Description Endi Sukma Dewata 2010-06-21 15:46:19 UTC
Created attachment 425678 [details]
scripts.tar.gz

When a new server instance is created using setup-ds.pl, the startServer() in DSCreate.pm will wait until a phrase "slapd started." appears in the error log. If the new instance is configured to listen to LDAPI interface only, not the regular LDAP port, it will not display the phase causing the script to wait until timeout (10 minutes).

How reproducible: consistently.

To reproduce the problem, unpack the attached scripts.tar.gz, then execute run.sh. It will create an instance with the following .inf file:

[General]
SuiteSpotUserID=nobody

[slapd]
Suffix=dc=example,dc=com
RootDN=cn=Directory Manager
RootDNPwd=Secret123
ServerIdentifier=example
ldapifilepath=/tmp/ldapi

Actual results:
Could not start the directory server using command '/usr/lib/dirsrv/slapd-example/start-slapd'.  The last line from the error log was '[21/Jun/2010:00:41:55 -0500] - Listening on /tmp/ldapi for LDAPI requests
'.  Error:
Error: Could not create directory server instance 'example'.
Exiting . . .
Log file is '/tmp/setupT6JK7h.log'

Expected results:
The setup-ds.pl should complete without timing out.

Comment 3 Nathan Kinder 2010-12-10 22:14:52 UTC
Created attachment 468075 [details]
Patch

Comment 4 Nathan Kinder 2010-12-10 22:24:36 UTC
Pushed to master.  Thanks to Noriko for her review!

Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 964 bytes, done.
Total 6 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
   b3b0217..d9cac18  master -> master

Comment 5 Amita Sharma 2011-05-25 10:53:11 UTC
[root@amsharma scripts]# ./run.sh
Stopping slapd...
Removing slapd...
Instance slapd-amsharma removed.
Creating slapd...
Your new DS instance 'example' was successfully created.
Exiting . . .
Log file is '/tmp/setupimsedY.log'

[11/05/25:16:21:39] - [Setup] Info Your new DS instance 'example' was successfully created.
[11/05/25:16:21:39] - [Setup] Success Exiting . . .
Log file is '/tmp/setupimsedY.log'

Finished in no time. Hence Verified.