Project

General

Profile

Actions

Bug #10516

closed

After migration to 4.1, logs contain "'com.unboundid.ldap.sdk.LDAPException: serializedTags: attribute type undefined"

Added by François ARMAND about 7 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
-
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
27
Name check:
Fix check:
Regression:

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.

Actions #1

Updated by François ARMAND about 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).

Actions #2

Updated by Benoît PECCATTE about 7 years ago

  • Priority set to 0
Actions #3

Updated by Benoît PECCATTE almost 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
Actions #4

Updated by Alexis Mousset almost 7 years ago

  • Category set to Packaging
Actions #5

Updated by Benoît PECCATTE almost 7 years ago

  • Priority changed from 17 to 16
Actions #6

Updated by Benoît PECCATTE almost 7 years ago

  • Priority changed from 16 to 31
Actions #7

Updated by Benoît PECCATTE over 6 years ago

  • Priority changed from 31 to 29
Actions #8

Updated by François ARMAND over 5 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.

Actions

Also available in: Atom PDF