Project

General

Profile

Actions

Bug #11152

closed

Reporting on old technique fails in audit mode

Added by Maxime Longuet over 7 years ago. Updated over 7 years ago.

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

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 1 (0 open1 closed)

Related to Rudder - User story #7959: "rudder technique migrate" command to automatically upgrade all directives to a newer technique versionRejectedAlexis MoussetActions
Actions #1

Updated by Benoît PECCATTE over 7 years 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
Actions #2

Updated by Benoît PECCATTE over 7 years ago

  • Assignee set to François ARMAND
Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by François ARMAND over 7 years ago

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

Actions #7

Updated by Maxime Longuet over 7 years ago

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

Actions #8

Updated by Benoît PECCATTE over 7 years ago

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

Updated by Benoît PECCATTE over 7 years 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.

Actions #10

Updated by François ARMAND over 7 years ago

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

Updated by François ARMAND over 7 years ago

  • Status changed from New to In progress
Actions #12

Updated by François ARMAND over 7 years 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
Actions #13

Updated by François ARMAND over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #14

Updated by Vincent MEMBRÉ over 7 years ago

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

Updated by Vincent MEMBRÉ over 7 years 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.

Actions

Also available in: Atom PDF