Bug #20984
closedTwo same envvar modulo a space at begining of name leads to LDAP error when saving inventory
Description
There's a windows inventory that systematicall trigger ldap error
Symptome is
ERROR inventory-processing - Error when trying to process report: Can't merge inventory report in LDAP directory, aborting; cause was: Exception when commiting inventory, abort.; cause was: BackendException: Error when doing action 'adds' with and LDIF change request: null; cause was: com.unboundid.ldap.sdk.LDAPException: no such object -> com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyAdds$2(LDAPConnection.scala:562) -> com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyMod$1(LDAPConnection.scala:514) ;you probably need to increase value ldap.maxPoolSize property in configuration file, please check the documentation - see https://docs.rudder.io/reference/7.0/administration/performance.html#_ldap_configuration
the Machine part is saved, but not the nodes part
Preventing from saving the Environment make it works, preventing from saving software and/or FS and/or Networks makes it fails with an error about missing localAdministratorName when saving processes (most likely because there aren't any processes on windows)
Fails both in 6.2 & 7.0
Test correction
- create two identical env var appart from a leading space on a node
- rudder agent inventory
- check that inventory contains both env var
- check that inventory is accepted by server
Updated by Vincent MEMBRÉ over 2 years ago
This is because a environment variable was defined twice "XXX" and " XXX" but we trim all entries from our inventories and we end up with an inventory with two times the same variable
The ldap request to insert this node entry then fails because it provides to time the same attribute with the same value, which is impossible but this fails silently
The saving process then continue to a children entry, but since the parent was not created, the request fails
Updated by François ARMAND over 2 years ago
- Subject changed from LDAP error when saving inventory to Two same envvar modulo a space at begining of name leads to LDAP error when saving inventory
Updated by François ARMAND over 2 years ago
- Target version changed from 6.2.14 to 6.1.20
Updated by François ARMAND over 2 years ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by François ARMAND over 2 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/4235
Updated by François ARMAND over 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|8163e5cdc4396df7912ecd6483098bb66eb6e1b5.
Updated by Vincent MEMBRÉ over 2 years ago
- Status changed from Pending release to Released