Actions
Bug #10608
closedScript rudder-init cannot reinit ldap database
Pull Request:
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
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
Updated by Benoît PECCATTE over 7 years ago
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
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
Updated by Benoît PECCATTE over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|5d02c87671c77081aac46eaf5bef8f2a9fa649f8.
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from Pending release to Released
Actions