Project

General

Profile

Actions

Bug #5882

closed

User story #5293: Add a 'changes only' compliance mode, only reporting changes on systems

System variable RUDDER_REPORT_MODE is never set

Added by Jonathan CLARKE over 9 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The system variable RUDDER_REPORT_MODE should contain value "changes-only" or "full-compliance", to tell the promises what mode to run in.

This is correctly defined in cf-clerk:

./src/main/scala/com/normation/cfclerk/services/impl/SystemVariableSpecServiceImpl.scala:154:    , SystemVariableSpec("RUDDER_REPORT_MODE", "Defines if Rudder should send compliance reports or only change (error, repair) one. (default full-compliance)" 

But never used in rudder:

$ grep -rHni REPORT_MODE rudder/
$

And of course, this means the value is never set in the generated promises:

      # on changes only, we only reports on repaired or error message
      "changes_only" expression => strcmp("", "changes-only");

      # full compliance is the default mode
      "full_compliance" not => "changes_only";

(that empty string on line 2 should be "changes-only" or "full-compliance")

Actions #1

Updated by Jonathan CLARKE over 9 years ago

  • Target version changed from 3.0.0~beta2 to 3.0.0~beta1
Actions #2

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from New to Pending technical review
  • Pull Request set to https://github.com/Normation/rudder/pull/673
Actions #3

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #5

Updated by Vincent MEMBRÉ over 9 years ago

  • Parent task set to #5293
Actions #6

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.0~beta1 which was release on 01/12/2014.

Actions

Also available in: Atom PDF