Bug #3587
closedArchives entry is missing in LDAP, leading to error when creating rules.
Description
When Trying to create a new Rule, I have an error Can't execute LDAP request. Into the log file */var/log/rudder/webapp/2013_05_15.stderrout.log
[2013-05-15 07:35:45] ERROR com.normation.ldap.sdk.RWPooledSimpleAuthConnectionProvider - Can't execute LDAP request com.unboundid.ldap.sdk.LDAPSearchException: no such object at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3112) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1] [2013-05-15 07:35:45] ERROR com.normation.rudder.web.components.popup.CreateOrCloneRulePopup - An error occurred while saving the Rule:Can't execute LDAP request
Neverthless, I still can add new groups or Directives...
Updated by François ARMAND over 11 years ago
- Category set to Web - Maintenance
- Assignee set to François ARMAND
- Target version set to 2.6.1
I can not reproduce that on other fresh installation.
So something went wrong with that installation, and actually, the LDAP DIT is broken: there is no "ou=Rules,..." object, and so Rudder can't work.
"Simply" adding back that object and its children make rudder work again.
Normally, there is a check for that, that does not work - see bug #3588)
I'm going to relaunch snapshot-2.6 CI task to see if it's reproducible, or was "just" bad luck.
Updated by François ARMAND over 11 years ago
- Status changed from New to Discussion
The new snapshot works as expected, so it should be some cosmic ray not being nice with us.
Updated by François ARMAND over 11 years ago
OK, so the actual problem is that "ou=Archives" is not created, and that combined #3588 and with a bug in UnboundID that try to move object even if the destination is not present leads to the suppression of rules, and then to the errors.
So, easy workaround (and correction): add in bootstrap.ldif "ou=Archives,ou=Rudder,cn=rudder-configuration".
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from Discussion to In progress
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Target version changed from 2.6.1 to 2.4.6
This bug impacts 2.4 too, retargeting this issue
We also need to make a migration script to include that change.
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/211
Pull request here : https://github.com/Normation/rudder/pull/211
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 24c449fb8aa741cf0dcb115d4e2e4b96df8caaed.
Updated by Anonymous over 11 years ago
Applied in changeset 81cb62296413b7f38f57855a5318190b4542a88e.
Updated by Vincent MEMBRÉ over 11 years ago
- Subject changed from On a fresh rudder 2.6.0 installation after having created a MOTD Directive, an error about LDAP appears when trying to make a new Rule (Can't execute LDAP request) to Archives entry is missing in LDAP, leading to error when creating rules.
Updated by Nicolas PERRON over 11 years ago
- Status changed from Pending release to Released