Bug #11152
closedReporting on old technique fails in audit mode
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. :(
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
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.
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).
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.
Updated by François ARMAND over 7 years ago
Migrating to last Technique version solved the reporting problem on my case.
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.. ;)
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
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.
Updated by François ARMAND over 7 years ago
- Assignee changed from Vincent MEMBRÉ to François ARMAND
Updated by François ARMAND over 7 years ago
- Status changed from New to In progress
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
Updated by François ARMAND over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|167206b6a9848ced568d5e8634e0b3d3125fa40c.
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
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.
- 4.1.6: Announce Changelog
- 4.2.0~beta3: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/