Architecture #9315
closedUser story #1808: Add an Audit mode to Rudder: only check properties, no modification on nodes
User story #9273: Process audit reports and adapt compliance displaying for audit mode
Update DB schema of expected reports to store policy mode
Description
The current solution implemented in parent task #9273 retrieve policy mode information when compliance is computed. That mean that is anything changed between the moment the agent received its policies and the moment the server is processing reports, then everything is false.
So we need to store policy mode (and it would be better to also store node run related information like frequency) along with expected reports.
It means that either we extends expectedReports and expectedReportsNode, and adapt the logic which correctly update each part when needed, or we create a new "node configuration" table with the node configuration information.
This ticket is here to explore the second option. So let's detail a little that new NodeConfiguration table columns:
- nodeId : the node IDs
- nodeConfigId : unique identifier for a node config version (reported in run)
- startDate : date when that configuration was created
- endDate : date when that configuration was closed (cause: node deleted, new config available,
- configuration: a JSON data structure with:
- node system configuration: policy mode, run period, perhaps in the future other things
- node expected configuration: list of expected rules, directives, components, values. The structure of data in that part should match the structure of RuleNodeExpectedReports
Updated by François ARMAND about 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/1277
Updated by François ARMAND about 8 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|042a70fd5de4087c2f17f78f68a1fed3b7a54441.
Updated by Benoît PECCATTE about 8 years ago
- Target version changed from 4.0.0~rc2 to 318
Updated by François ARMAND about 8 years ago
- Related to Bug #9331: Compliance report in audit mode is broken for system techniques added
Updated by François ARMAND about 8 years ago
- Related to Bug #9415: Nodes have several open nodeconfigurations added
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 318 to 4.0.0~rc2
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 4.0.0~rc2 to 4.0.0~rc1
Updated by François ARMAND about 8 years ago
- Related to Bug #6167: When we reduce the run interval of nodes, "no data" may be wrongly reported added
Updated by Vincent MEMBRÉ about 8 years ago
- Related to deleted (Bug #9415: Nodes have several open nodeconfigurations)
Updated by Alexis Mousset about 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.0.0 which was released the 10th November 2016.