[Date Prev][Date Next] [Chronological] [Thread] [Top]

openldap-2.2.19: make test fails on test007



Hi everybody,

got some free days so i try to update my old
(but running well) openldap 2.0.27 .

My System is an old but well running Suse 7.1
with vanilla kernel 2.4.27 .

Here's what glibc says :

---snipp---
[PTS1] /usr/lib # /lib/libc.so.6
GNU C Library stable release version 2.2, by Roland McGrath et al.
Copyright (C) 1992,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.95.2 19991024 (release).
Compiled on a Linux 2.4.0 system on 2001-12-18.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        Berkeley DB glibc 2.1 compat library by Thorsten Kukuk
        linuxthreads-0.9 by Xavier Leroy
        NoVersion patch for broken glibc 2.0 binaries
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        NSS V1 modules 2.1 by Thorsten Kukuk
        libthread_db work sponsored by Alpha Processor Inc
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
---snipp---

I started from the scratch and built the following packages :

openssl-0.9.6m ( installed in /usr/local/openssl-0.9.6m then
symlinked to /usr/local/openssl)

bdb-4.2.52 (installed /usr/local/bdb-4.2.52
symlinked to /usr/local/bdb-4.2)

heimdal-0.6.3 (installed in /usr/local/heimdal-0.6.3
symlinked to /usr/local/heimdal)

cyrus-sasl-2.1.20 (installed in /usr/local/sasl-2.1.20
symlinked to /usr/local/sasl2; /usr/lib/sasl2 is a symlink to
/usr/local/sasl2/lib/sasl2)

And , finally ,openldap-2.2.19 was compiled with the following script :

---snipp---
#!/bin/sh

CPPFLAGS="-I/usr/local/bdb-4.2/include \
-I/usr/local/heimdal/include -I/usr/local/sasl2/include \
-I/usr/local/sasl2/include -I/usr/local/ssl/include"

LDFLAGS="-L/usr/local/bdb-4.2/lib \
-L/usr/local/heimdal/lib  -L/usr/local/sasl2/lib/sasl2 \
-L/usr/local/sasl2/lib -L/usr/local/ssl/lib"

export CPPFLAGS LDFLAGS

make clean
rm config.cache

export ac_cv_func_getaddrinfo=no

./configure \
--prefix=/usr/local/openldap-2.2.19 \
--mandir=/usr/man \
--enable-dynamic \
--enable-local \
--with-threads \
--with-tls \
--enable-slapd  \
--enable-aci \
--enable-crypt  \
--enable-lmpasswd \
--enable-spasswd \
--enable-rewrite \
--enable-wrappers \
--enable-bdb  \
--with-bdb-module=dynamic \
--enable-hdb \
--with-hdb-module=dynamic \
--enable-ldap \
--with-ldap-module=dynamic \
--enable-meta \
--with-meta-module=dynamic \
--enable-monitor \
--with-monitor-module=dynamic \
--with-dyngroup=yes \
--with-proxycache=yes \
&& make depend && make && make test && make install
---snipp---

As you can see, my glibc isn't the newest and there was a problem
with getaddrinfo , which was fixed with the above entry
export ac_cv_func_getaddrinfo=no
(i found a hint in the list, provided by H. Chu).

So, configure and make runs fine.
But, and here's my problem, make test fails at test007
as you can see here :

---snipp---
[PTS1] /work/make/openldap-2.2.19/tests # ./run test007
Cleaning up test run directory leftover from previous run.
Running ./scripts/test007-replication...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Starting slave slapd on TCP/IP port 9012...
Using ldapsearch to check that master slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapsearch to check that slave slapd is running...
Starting slurpd...
Using ldapadd to populate the master directory...
Waiting 15 seconds for slurpd to send changes...
Using ldapmodify to modify master directory...
Waiting 15 seconds for slurpd to send changes...
Using ldapsearch to read all the entries from the master...
Using ldapsearch to read all the entries from the slave...
ldapsearch failed (32)!
[PTS1] /work/make/openldap-2.2.19/tests #
---snipp---

So , here's what's in the logs from server 2
(i manually set loglevel to -1 in the testscript) :

---snipp---
@(#) $OpenLDAP: slapd 2.2.19 (Dec 20 2004 20:53:41) $
root@486dx66:/work/make/openldap-2.2.19/servers/slapd
daemon_init: ldap://localhost:9012
daemon_init: listen on ldap://localhost:9012
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap://localhost:9012)
daemon: initialized ldap://localhost:9012
daemon_init: 1 listeners opened
lt-slapd init: initiated server.
slap_sasl_init: initialized!
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_back_initialize: initialize HDB backend
bdb_back_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
reading config file ./testrun/slapd.2.conf
...
everything's fine here, so i cut the log a little bit
...
ber_get_next on fd 14 failed errno=0 (Success)
connection_read(14): input error=-2 id=1, closing.
do_unbind
conn=1 op=2 UNBIND
connection_closing: readying conn=1 sd=14 for close
connection_close: deferring conn=1 sd=14
connection_resched: reaquiring locks conn=1 sd=14
connection_resched: attempting closing conn=1 sd=14
connection_close: conn=1 sd=14
daemon: removing 14
conn=1 fd=14 closed
daemon: shutdown requested and initiated.
daemon: closing 8
slapd shutdown: waiting for 0 threads to terminate
lt-slapd shutdown: initiated
====> bdb_cache_release_all
lt-slapd shutdown: freeing system resources.
slapd stopped.
---snipp---


So, i think everything's okay (if you want to see the whole log,
please tell me !!!)


Here's log output from /work/make/openldap-2.2.19/tests/testrun/slurpd.log :

---snipp---
@(#) $OpenLDAP: slurpd 2.2.19 (Dec 20 2004 20:55:55) $
        root@486dx66:/work/make/openldap-2.2.19/servers/slurpd

No status file found, defaulting values
begin replication thread for localhost:9012
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
Initializing session to localhost:9012
ldap_create
bind to localhost:9012 as cn=Replica,o=University of Michigan,c=US (simple)
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:9012
ldap_pvt_gethostbyname_a: host=localhost, r=0
ldap_err2string
Error: ldap_simple_bind_s for localhost:9012 failed: Can't contact LDAP server
ldap_unbind
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
new work in ./testrun/slapd.1.replog
copy replog "./testrun/slapd.1.replog" to "./testrun/db.1.b/replica/slurpd.replog"
fm: exiting
Retrying operation for DN o=University of Michigan,c=US on replica localhost:9012
end replication thread for localhost:9012
slurpd: terminated.
---snipp---


To finish my descrition, i show you the following directory

---snipp---
[PTS1] /work/make/openldap-2.2.19/tests/testrun/db.1.a # ls -1l
total 936
-rw-------    1 root     root         8192 Dec 22 17:49 __db.001
-rw-------    1 root     root       270336 Dec 22 17:49 __db.002
-rw-------    1 root     root        98304 Dec 22 17:49 __db.003
-rw-------    1 root     root       368640 Dec 22 17:49 __db.004
-rw-------    1 root     root        24576 Dec 22 17:49 __db.005
-rw-------    1 root     root        16384 Dec 22 17:49 cn.bdb
-rw-------    1 root     root        16384 Dec 22 17:49 dn2id.bdb
-rw-------    1 root     root        98304 Dec 22 17:49 id2entry.bdb
-rw-------    1 root     root       307330 Dec 22 17:49 log.0000000001
-rw-------    1 root     root         8192 Dec 22 17:49 objectClass.bdb
-rw-------    1 root     root         8192 Dec 22 17:49 sn.bdb
-rw-------    1 root     root         8192 Dec 22 17:49 uid.bdb
---snipp---

And ...

---snipp---
[PTS1] /work/make/openldap-2.2.19/tests/testrun/db.1.b/replica # ls -1l
total 32
-rw-r--r--    1 root     root        31764 Dec 22 17:49 slurpd.replog
-rw-r--r--    1 root     root            0 Dec 22 17:49 slurpd.replog.lock
-rw-r--r--    1 root     root            0 Dec 22 17:49 slurpd.status
---snipp---

And ...

---snipp---
[PTS1] /work/make/openldap-2.2.19/tests/testrun/db.2.a # ls -1l
total 452
-rw-------    1 root     root         8192 Dec 22 17:49 __db.001
-rw-------    1 root     root       270336 Dec 22 17:49 __db.002
-rw-------    1 root     root        98304 Dec 22 17:49 __db.003
-rw-------    1 root     root       368640 Dec 22 17:49 __db.004
-rw-------    1 root     root        24576 Dec 22 17:49 __db.005
-rw-------    1 root     root         8192 Dec 22 17:49 dn2id.bdb
-rw-------    1 root     root        32768 Dec 22 17:49 id2entry.bdb
-rw-------    1 root     root        42225 Dec 22 17:49 log.0000000001
---snipp---

So searched the list and i googled (which led me to the list,
whereelse ;o) ... can anybody give me a hint on what's going
wrong here ?
If you want more informations , tell me which ones and i'll send
them ...

Hoping someone can help

Harry