Project

General

Profile

Actions

Bug #20984

closed

Two same envvar modulo a space at begining of name leads to LDAP error when saving inventory

Added by Nicolas CHARLES over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

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

Actions

Also available in: Atom PDF