Project

General

Profile

Actions

Architecture #9315

closed

User 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

Added by François ARMAND over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
2
Category:
Web - Compliance & node report
Target version:
Effort required:
Name check:
Fix check:
Regression:

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

Subtasks 2 (0 open2 closed)

User story #9380: Migration script for adding table nodeconfigurationsReleasedNicolas CHARLES2016-10-17Actions
Architecture #9417: Correct test on expected reports and clean codeReleasedVincent MEMBRÉ2016-10-18Actions

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #9331: Compliance report in audit mode is broken for system techniquesRejectedFrançois ARMAND2016-10-12Actions
Related to Rudder - Bug #6167: When we reduce the run interval of nodes, "no data" may be wrongly reportedRejectedJonathan CLARKE2015-01-22Actions
Actions #1

Updated by François ARMAND over 7 years ago

  • Description updated (diff)
Actions #2

Updated by François ARMAND over 7 years ago

  • Description updated (diff)
Actions #3

Updated by François ARMAND over 7 years ago

  • Description updated (diff)
Actions #4

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 Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/1277
Actions #5

Updated by François ARMAND over 7 years ago

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

Updated by Benoît PECCATTE over 7 years ago

  • Target version changed from 4.0.0~rc2 to 318
Actions #7

Updated by François ARMAND over 7 years ago

  • Related to Bug #9331: Compliance report in audit mode is broken for system techniques added
Actions #8

Updated by François ARMAND over 7 years ago

  • Related to Bug #9415: Nodes have several open nodeconfigurations added
Actions #9

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 318 to 4.0.0~rc2
Actions #10

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.0.0~rc2 to 4.0.0~rc1
Actions #11

Updated by François ARMAND over 7 years ago

  • Related to Bug #6167: When we reduce the run interval of nodes, "no data" may be wrongly reported added
Actions #12

Updated by Vincent MEMBRÉ over 7 years ago

  • Related to deleted (Bug #9415: Nodes have several open nodeconfigurations)
Actions #13

Updated by Alexis Mousset over 7 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.

Actions

Also available in: Atom PDF