+ max_iterations=10 + iterations=0 + ldap_started=1 + '[' 1 -eq 1 ']' ++ grep 2170 ++ grep 'LISTEN ' ++ netstat -ln + '[' -n 'tcp 0 0 0.0.0.0:2170 0.0.0.0:* LISTEN ' ']' + ldap_started=0 + sleep 2 + iterations=1 + '[' 1 -eq 10 ']' + '[' 0 -eq 1 ']' + case $1 in + glue-validator -H localhost -p 2170 -b o=grid -g glue1 -s general -v 3 UNKNOWN: No LDAP entries returned from ldap://localhost:2170/o=grid+ max_iterations=10 + iterations=0 + ldap_started=1 + '[' 1 -eq 1 ']' ++ grep 2170 ++ grep 'LISTEN ' ++ netstat -ln + '[' -n 'tcp 0 0 0.0.0.0:2170 0.0.0.0:* LISTEN ' ']' + ldap_started=0 + sleep 2 + iterations=1 + '[' 1 -eq 10 ']' + '[' 0 -eq 1 ']' + case $1 in ++ . /etc/bdii/gip/glite-info-site-defaults.conf +++ SITE_NAME=GRID-SITE +++ SITE_BDII_HOST=bdii-site-test.privatevlan.cloud.ifca.es ++ echo GRID-SITE + site_name=GRID-SITE + cmd='ldapsearch -x -h localhost -p 2170 -b mds-vo-name=GRID-SITE,o=grid' ++ . /etc/bdii/bdii.conf +++ BDII_LOG_FILE=/var/log/bdii/bdii-update.log +++ BDII_LOG_LEVEL=DEBUG +++ BDII_LDIF_DIR=/var/lib/bdii/gip/ldif +++ BDII_PROVIDER_DIR=/var/lib/bdii/gip/provider +++ BDII_PLUGIN_DIR=/var/lib/bdii/gip/plugin +++ BDII_PORT=2170 +++ BDII_BREATHE_TIME=10 +++ BDII_READ_TIMEOUT=300 +++ BDII_ARCHIVE_SIZE=0 +++ BDII_DELETE_DELAY=0 +++ BDII_USER=ldap +++ BDII_VAR_DIR=/var/lib/bdii ++ echo 10 + breathe_time=10 + echo 'Waiting 10 seconds to check BDII health..' Waiting 10 seconds to check BDII health.. + sleep 10 ++ seq 1 5 + for i in '`seq 1 5`' + set +e + ldapsearch -x -h localhost -p 2170 -b mds-vo-name=GRID-SITE,o=grid + '[' 32 -eq 0 ']' + echo 'ldap not started..waiting for 2 seconds..' ldap not started..waiting for 2 seconds.. + sleep 2 + for i in '`seq 1 5`' + set +e + ldapsearch -x -h localhost -p 2170 -b mds-vo-name=GRID-SITE,o=grid + '[' 32 -eq 0 ']' + echo 'ldap not started..waiting for 2 seconds..' ldap not started..waiting for 2 seconds.. + sleep 2 + for i in '`seq 1 5`' + set +e + ldapsearch -x -h localhost -p 2170 -b mds-vo-name=GRID-SITE,o=grid + '[' 32 -eq 0 ']' + echo 'ldap not started..waiting for 2 seconds..' ldap not started..waiting for 2 seconds.. + sleep 2 + for i in '`seq 1 5`' + set +e + ldapsearch -x -h localhost -p 2170 -b mds-vo-name=GRID-SITE,o=grid + '[' 32 -eq 0 ']' + echo 'ldap not started..waiting for 2 seconds..' ldap not started..waiting for 2 seconds.. + sleep 2 + for i in '`seq 1 5`' + set +e + ldapsearch -x -h localhost -p 2170 -b mds-vo-name=GRID-SITE,o=grid + '[' 32 -eq 0 ']' + echo 'ldap not started..waiting for 2 seconds..' ldap not started..waiting for 2 seconds.. + sleep 2