Bug #10516
closedAfter migration to 4.1, logs contain "'com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined"
Description
During a migration on Debian 8 from Rudder 4.0 to Rudder 4.1, at the end of the migration the webapp logs (/var/logs/rudder/webapp/YYYY_mm_dd.stderrout) contains a series of exception about "serializedTags: attribute type undefined":
[2017-03-28 09:44:24] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to modify entry 'directiveId=c66410bf-4a74-463e-8172-c584bd5022eb-distributePolicy,activeTechniqueId=distributePolicy,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration'. Reported exception was: serializedTags: attribute type undefined com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined at com.unboundid.ldap.sdk.LDAPConnection.modify(LDAPConnection.java:2754) at com.normation.ldap.sdk.RwLDAPConnection.$anonfun$modifyAction$3(LDAPConnection.scala:541) ... at com.normation.rudder.services.policies.SaveDirectivesOnTechniqueCallback.$anonfun$updatedTechniques$2(TechniqueReloadingCallbacks.scala:82) ... at com.normation.rudder.services.policies.SaveDirectivesOnTechniqueCallback.$anonfun$updatedTechniques$1(TechniqueReloadingCallbacks.scala:78) ... at com.normation.cfclerk.services.impl.TechniqueRepositoryImpl.$anonfun$update$4(TechniqueRepositoryImpl.scala:116) at com.normation.utils.Control$.$anonfun$bestEffort$1(Control.scala:111) at scala.collection.immutable.List.foreach(List.scala:378) at com.normation.utils.Control$.bestEffort(Control.scala:111) at com.normation.cfclerk.services.impl.TechniqueRepositoryImpl.update(TechniqueRepositoryImpl.scala:114) at bootstrap.liftweb.checks.CheckTechniqueLibraryReload.checks(CheckTechniqueLibraryReload.scala:78) ... [2017-03-28 09:44:24] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to modify entry 'directiveId=common-root,activeTechniqueId=common,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration'. Reported exception was: serializedTags: attribute type undefined com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined ...[same kind of stactrace] ... ... [2017-03-28 09:44:24] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to modify entry 'directiveId=inventory-all,activeTechniqueId=inventory,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration'. Reported exception was: serializedTags: attribute type undefined com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined ...[same kind of stactrace] ... ... [2017-03-28 09:44:24] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to modify entry 'directiveId=server-roles-directive,activeTechniqueId=server-roles,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration'. Reported exception was: serializedTags: attribute type undefined com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined ...[same kind of stactrace] ... ... [2017-03-28 09:44:24] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to modify entry 'directiveId=common-c66410bf-4a74-463e-8172-c584bd5022eb,activeTechniqueId=common,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration'. Reported exception was: serializedTags: attribute type undefined com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined ...[same kind of stactrace] ... ... [2017-03-28 09:44:25] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to modify entry 'directiveId=root-distributePolicy,activeTechniqueId=distributePolicy,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration'. Reported exception was: serializedTags: attribute type undefined com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined ...[same kind of stactrace] ...
Appart from the presence of the stack trace, nothing seems to be broken.
Updated by François ARMAND over 7 years ago
So, the problem is that we are restarting slapd (which makes it reads the new schema which includes "serializedTags") AFTER the webapp. So the webapp restarts, reload the technique library, which triggers the hook "SaveDirectivesOnTechniqueCallback" and that does not works because there is not tags yet in the schema.
I could break a deployment if one of the cases for which SaveDirectivesOnTechniqueCallback was introduced is met (see https://www.rudder-project.org/redmine/issues/4289 for details).
Updated by Benoît PECCATTE over 7 years ago
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 17
Updated by François ARMAND almost 6 years ago
- Status changed from New to Rejected
- Priority changed from 29 to 27
4.0 is not supported anymore since a long time, closing that.