Project

General

Profile

Bug #11152

Reporting on old technique fails in audit mode

Added by Maxime Longuet 2 months ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Web - Compliance & node report
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
70

Description

For a new node i've put Audit Mode on the Node.

But on report compliance i've :

This node has up to date policy and the agent is running. Reports below are from the latest run, which started on the node at 2017-07-21 17:27:27.

Current configuration ID for this node is '20170721-171353-93fe40dc' (generated on 2017-07-21 17:13:53).

The node is reporting an error regarding the requested policy mode of the policies. This problem require special attention.

Error for node 'da94dfa9-9cef-43e9-b9bf-daf8304aad62' in directive 'f00d263c-1601-46ec-9b31-a37bf564bfe6', other directives based on the same Technique have different Policy Mode
Error for node 'da94dfa9-9cef-43e9-b9bf-daf8304aad62' in directive '7607768b-d7be-4887-ba5e-f1a7cd4d59b0', other directives based on the same Technique have different Policy Mode
Error for node 'da94dfa9-9cef-43e9-b9bf-daf8304aad62' in directive '95106170-490d-455b-8cd0-6f73636bfefd', other directives based on the same Technique have different Policy Mode
Error for node 'da94dfa9-9cef-43e9-b9bf-daf8304aad62' in directive '5bfdab24-f8d8-426e-9aea-a31d89afb018', other directives based on the same Technique have different Policy Mode
134 reports below (out of 148 total reports) are not in Success, and may require attention." 

With compliance in red with missing status. :(


Related issues

Related to Rudder - User story #7959: "rudder technique migrate" command to automatically upgrade all directives to a newer technique version New

Associated revisions

Revision 167206b6
Added by François ARMAND about 1 month ago

Fixes #11152: Reporting on old techniqe fail in audit mode

History

#1 Updated by Benoît PECCATTE about 2 months ago

  • Target version set to 4.1.6
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Getting started - demo | first install | level 1 Techniques
  • Priority changed from 0 to 70

#2 Updated by Benoît PECCATTE about 2 months ago

  • Assignee set to François ARMAND

#3 Updated by François ARMAND about 2 months ago

I can reproduce the problem when some directives are sending "enforece" reports while the node is actually in audit.

In my case, the directive are correctly configured to be in audit in /var/rudder/cfengine-community/inputs/rudder-directives.cf, but they still send bad kind of reports. Perhaps the problems lie on the Techniques.

#4 Updated by François ARMAND about 2 months ago

So, it happens on old version of Techniques that don't support audit mode (and for now, I didn't reproduce it on other cases).

#5 Updated by François ARMAND about 2 months ago

Notice that on my cases, the audit mode was respected (i.e no changes were made) and only the reporting was incorrect - which is bad, but less bad than the case where changes would have been made on a node where none should have.

#6 Updated by François ARMAND about 2 months ago

Migrating to last Technique version solved the reporting problem on my case.

#7 Updated by Maxime Longuet about 2 months ago

Ok thanks, i'm check how mlgrate my 30 directives on enforce content file 6.0 to 7.0.. ;)

#8 Updated by Benoît PECCATTE about 1 month ago

  • Related to User story #7959: "rudder technique migrate" command to automatically upgrade all directives to a newer technique version added

#9 Updated by Benoît PECCATTE about 1 month ago

  • Subject changed from Audit mode on node to Reporting on old techniqe fail in audit mode
  • Assignee changed from François ARMAND to Vincent MEMBRÉ

Let's change the message: this error happens when we have an old technique that doesn't report properly during audit mode.

#10 Updated by François ARMAND about 1 month ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND

#11 Updated by François ARMAND about 1 month ago

  • Status changed from New to In progress

#12 Updated by François ARMAND about 1 month ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/1720

#13 Updated by François ARMAND about 1 month ago

  • Status changed from Pending technical review to Pending release

#14 Updated by Vincent MEMBRÉ about 1 month ago

  • Subject changed from Reporting on old techniqe fail in audit mode to Reporting on old technique fails in audit mode

#15 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.6 and 4.2.0~beta3 which were released today.

Also available in: Atom PDF