Actions
Bug #18500
closedclicking twice on rollbacking event in 6.1 breaks rudder
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
After clicking twice in a row on rollbacking after an event, I got an error
[2020-11-04 20:29:20+0100] INFO git-policy-archive - Importing technique library archive with id '024c69a42a23d1cea06c1c 51586124fa622297f6' [2020-11-04 20:29:21+0100] INFO git-policy-archive - Importing full archive with id '024c69a42a23d1cea06c1c51586124fa622 297f6' [2020-11-04 20:29:21+0100] INFO git-policy-archive - Importing rules archive with id '024c69a42a23d1cea06c1c51586124fa62 2297f6' [2020-11-04 20:29:21+0100] INFO git-policy-archive - Importing rule categories archive with id '024c69a42a23d1cea06c1c51 586124fa622297f6' [2020-11-04 20:29:21+0100] INFO git-policy-archive - Importing technique library archive with id '024c69a42a23d1cea06c1c 51586124fa622297f6' [2020-11-04 20:29:22+0100] ERROR com.normation.rudder.repository.ldap.ImportTechniqueLibraryImpl - Error when trying to load archived active technique library. Rollbaching to previous one. [2020-11-04 20:29:22+0100] ERROR com.normation.rudder.rest.RestUtils - "Error when performing eventlog's rollback with id '2334' <- Error when swapping serialised library and existing one in LDAP <- Error when trying to restore archive with ID '2020-11-04T20:29:22.069+01:00' for the active technique library <- Error when persisting User Policy entry with DN 'activeTechniqueId=19c22bfd-16dc-468f-a575-3215f28c2c1f,techniqueCategoryId=ncf_techniques,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration' in LDAP <- BackendException: Error when doing action 'add' with and LDIF change request: null; cause was: com.unboundid.ldap.sdk.LDAPException: no such object \n -> com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyAdd$2(LDAPConnection.scala:568)\n -> com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyMod$1(LDAPConnection.scala:513)" [2020-11-04 20:29:24+0100] INFO git-policy-archive - Importing groups archive with id '024c69a42a23d1cea06c1c51586124fa622297f6' [2020-11-04 20:29:27+0100] INFO git-policy-archive - Importing Parameters archive with id '024c69a42a23d1cea06c1c51586124fa622297f6'
Rudder is totally broken after that
⇨ Policy update error for process '844' at 2020-11-04 20:29:52 ⇨ Cannot build Rule vals ⇨ Could not find configuration vals ⇨ Cannot find directive with id 'dsc-common-all' when building rule 'Rudder system policy: base configuration for DSC based agent' (dsc-agent-all) ⇨ Cannot find directive with id 'common-root' when building rule 'Rudder system policy: basic setup (common)' (hasPolicyServer-root) ⇨ Cannot find directive with id 'root-distributePolicy' when building rule 'Rudder system policy: Distribute Policy' (root-DP) ⇨ Cannot find directive with id 'server-roles-directive' when building rule 'Rudder system policy: Server roles' (server-roles) ⇨ Cannot find directive with id 'inventory-all' when building rule 'Rudder system policy: System daily inventory' (inventory-all)
trying to restore from event log to a previous step fails with
Rollback failed : Error when performing eventlog's rollback with id '2354' <- Error when trying to get Git Commit for modification ID '6e866fb0-bdd1-43e5-8954-eaa93401a7ed'. Cause was: UnexpectedContinuation$: Expected ResultSet exhaustion, but more rows were available.
Files
Updated by Nicolas CHARLES about 4 years ago
Trying to restore from last commit does not solves the issue
Updated by Nicolas CHARLES about 4 years ago
- Related to Bug #17720: If a second rollback starts when a first is processing, system group/technique may be lost added
Updated by Nicolas CHARLES about 4 years ago
- File fix-broken-rollback.sh fix-broken-rollback.sh added
workaround with attached script
it does not restore allowed network
Updated by François ARMAND over 2 years ago
- Related to Bug #21429: rollback button in even log can be clicked several time in a row and error are stacked in other screens added
Actions