Deploying DevStack with LDAP error: oldRootPW

asked 2020-03-13 16:51:51 -0500

Jwoozy gravatar image

Following the Deploying DevStack with LDAP deployment: https://docs.openstack.org/devstack/latest/guides/devstack-with-ldap.html (https://docs.openstack.org/devstack/l...)

I'm getting the following error with this local.conf

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP= < MY LOCAL IP ADDRESS >
RECLONE=yes
#LDAP
enable_service ldap
LDAP_PASSWORD=secret
SERVICE_HOST=$HOST_IP

then run

./stack.sh

error

+lib/ldap:_ldap_varsubst:57                sed -e '
        s|${LDAP_OLCDB_NUMBER}|2|
        s|${SLAPPASS}|{SSHA}6yV5GGQ0FwZ0dqN/qyIenH/zibk3NkZw|
        s|${LDAP_ROOTPW_COMMAND}|add|
        s|${BASE_DC}|openstack|
        s|${BASE_DN}|dc=openstack,dc=org|
        s|${MANAGER_DN}|cn=Manager,dc=openstack,dc=org|
    ' /opt/stack/devstack/files/ldap/manager.ldif.in
+lib/ldap:install_ldap:139                 sudo ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/ldap.24414.6oQZN0iimp/manager.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "olcDatabase={2}hdb,cn=config"
ldap_modify: Inappropriate matching (18)
        additional info: modify/add: olcRootPW: no equality matching rule

+lib/ldap:install_ldap:1                   exit_trap
+./stack.sh:exit_trap:533                  local r=18
++./stack.sh:exit_trap:534                  jobs -p
+./stack.sh:exit_trap:534                  jobs=
+./stack.sh:exit_trap:537                  [[ -n '' ]]
+./stack.sh:exit_trap:543                  '[' -f '' ']'
+./stack.sh:exit_trap:548                  kill_spinner
+./stack.sh:kill_spinner:443               '[' '!' -z '' ']'
+./stack.sh:exit_trap:550                  [[ 18 -ne 0 ]]
+./stack.sh:exit_trap:551                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:553                  type -p generate-subunit
+./stack.sh:exit_trap:554                  generate-subunit 1584135144 127 fail
+./stack.sh:exit_trap:556                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:559                  /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2020-03-13-213431.txt for details
+./stack.sh:exit_trap:568                  exit 18

expected result

OpenStack DevStack deploys without any issues.

Any ideas how to fix this issue: additional info: modify/add: olcRootPW: no equality matching rule?

Thanks, Jwoozy

edit retag flag offensive close merge delete