Project

General

Profile

Bug #10608

Script rudder-init cannot reinit ldap database

Added by Nicolas CHARLES 5 months ago. Updated 4 months ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
36

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

Associated revisions

Revision 5d02c876
Added by Benoît PECCATTE 5 months ago

Fixes #10608: Script rudder-init cannot reinit ldap database

History

#1 Updated by François ARMAND 5 months ago

  • Target version set to 3.1.20
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 36

#2 Updated by Benoît PECCATTE 5 months ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE

#3 Updated by Benoît PECCATTE 5 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1342

#4 Updated by Benoît PECCATTE 5 months ago

  • Status changed from Pending technical review to Pending release

#5 Updated by Vincent MEMBRÉ 4 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.20, 4.0.5 and 4.1.2 which were released today.

Also available in: Atom PDF