Project

General

Profile

Actions

Bug #10608

closed

Script rudder-init cannot reinit ldap database

Added by Nicolas CHARLES over 7 years ago. Updated over 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 #1

Updated by François ARMAND over 7 years 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
Actions #2

Updated by Benoît PECCATTE over 7 years ago

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

Updated by Benoît PECCATTE over 7 years 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
Actions #4

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #5

Updated by Vincent MEMBRÉ over 7 years 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.

Actions

Also available in: Atom PDF