Project

General

Profile

Actions

Bug #17373

closed

Bug #17341: Compliance data for reporting plugin are not generated anymore

duplicates entries when saving node compliance levels

Added by Vincent MEMBRÉ over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Next version
Regression:

Description

There was a bug in the resolution of #17341

We insert already inserted node compliance levels:

We have a log a each agent run:

[2020-05-11 12:56:34+0200] ERROR report - Error when saving node compliances: Batch entry 0 insert into nodecompliancelevels (nodeid,runtimestamp,ruleid,directiveid,pending,success,repaired,error,unexpected,missing,noanswer,notapplicable,reportsdisabled,compliant,auditnotap...
[2020-05-11 12:56:34+0200] ERROR report.cache - Error when updating compliance cache for nodes: [root]: SystemError: Batch entry 0 insert into nodecompliancelevels (nodeid,runtimestamp,ruleid,directiveid,pending,success,repaired,error,unexpected,missing,noanswer,notapplicable,reportsdisabled,compliant,auditnotapplicable,noncompliant,auditerror,badpolicymode)
 values ( 'root','2020-05-11 12:50:39+02','server-roles','serve…

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #17410: Error log about duplicates entries when saving node compliance levelsReleasedVincent MEMBRÉActions
Related to Rudder - Bug #17401: Error logs about duplicated entries to nodeComplianceLevel after policy generation. ResolvedActions
Actions

Also available in: Atom PDF