User story #6371
closed
Techniques calling the same generic methods twice may miss a report
Added by Benoît PECCATTE over 9 years ago.
Updated over 1 year ago.
Category:
System techniques
Description
A generic methods called twice with the same parameters will produce a single report whereas Rudder expect 2 reports.
Since this is an expected behaviour of cfengine we should have a process that works with it.
First, the rudder logger in ncf is controlled by Rudder. Second, it has everything needed to do proper reporting.
So we can guess missing reports from existing reports.
Here is the proposed solution :
- change ncf rudder_logger to log to a temporary file in addition to syslog
- have a new bundle in rudder generated bundlesquence named complete_reports and called at the end en the sequence
- this bundle would read the temporary file and read the expected report.csv
- on each missing report, if a report already exists for the same parameters, it means that the outcome is exactly the same
- append to syslog a copy of this report to make Rudder happy
- remove the temporary file
- Target version changed from 3.1.0~beta1 to 3.1.0~rc1
- Target version changed from 3.1.0~rc1 to 3.1.0
- Target version changed from 3.1.0 to 3.1.1
- Target version changed from 3.1.1 to 3.1.2
- Target version changed from 3.1.2 to 3.1.3
- Target version changed from 3.1.3 to 3.1.4
- Target version changed from 3.1.4 to 3.1.5
- Target version changed from 3.1.5 to 3.1.6
- Target version changed from 3.1.6 to 3.1.7
- Target version changed from 3.1.7 to 3.1.8
- Target version changed from 3.1.8 to 3.1.9
- Target version changed from 3.1.9 to 3.1.10
- Target version changed from 3.1.10 to 3.1.11
- Target version changed from 3.1.11 to 3.1.12
- Target version changed from 3.1.12 to 3.1.13
- Target version changed from 3.1.13 to 3.1.14
- Target version changed from 3.1.14 to 3.1.15
- Target version changed from 3.1.15 to 3.1.16
- Target version changed from 3.1.16 to 3.1.17
- Target version changed from 3.1.17 to 3.1.18
- Target version changed from 3.1.18 to 3.1.19
- Target version changed from 3.1.19 to 3.1.20
- Target version changed from 3.1.20 to 3.1.21
- Target version changed from 3.1.21 to 3.1.22
- Target version changed from 3.1.22 to 3.1.23
- Target version changed from 3.1.23 to 3.1.24
- Target version changed from 3.1.24 to 3.1.25
- Target version changed from 3.1.25 to 4.1.9
- Target version changed from 4.1.9 to 4.1.10
- Target version changed from 4.1.10 to Ideas (not version specific)
- Status changed from New to Rejected
- Regression set to No
This should not be the case anymore
Also available in: Atom
PDF