Project

General

Profile

Actions

Bug #10608

closed

Script rudder-init cannot reinit ldap database

Added by Nicolas CHARLES about 7 years ago. Updated about 7 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
36
Name check:
Fix check:
Regression:

Description

When trying to reinit ldap database, script fails:

Initializing LDAP database...+ ldapdelete -H ldap://localhost:389/ -D cn=manager,cn=rudder-configuration -w 268535b307f9 -x -r cn=rudder-configuration
ldap_delete: No such object (32)
+ LDAPInit
+ cp /opt/rudder/share/bootstrap.ldif /tmp/tmp.JZFrFGbHBr/bootstrap.ldif
+ cp /opt/rudder/share/init-policy-server.ldif /tmp/tmp.JZFrFGbHBr/init-policy-server.ldif
+ sed -i 's/^\([^#].*\)%%POLICY_SERVER_HOSTNAME%%/\1server.rudder.local/g' /tmp/tmp.JZFrFGbHBr/init-policy-server.ldif
+ sed -i 's#^\([^#].*\)%%POLICY_SERVER_ALLOWED_NETWORKS%%#\1192\.168\.0\.0/16#g' /tmp/tmp.JZFrFGbHBr/init-policy-server.ldif
+ ldapadd -H ldap://localhost:389/ -D cn=manager,cn=rudder-configuration -w 268535b307f9 -x -f /tmp/tmp.JZFrFGbHBr/bootstrap.ldif
+ ErrorCheck
+ '[' 68 -ne 0 ']'
+ echo 'ERROR: Execution failed! Aborting.'
ERROR: Execution failed! Aborting.
+ echo 'An error occured. Please check /tmp/rudder.XlqUYH7MzT.log for details.'

Root entry cannot be deleted apparently
So ldapadd bootstrap fails, as it try to add an entry that is already there

Actions

Also available in: Atom PDF