Project

General

Profile

Actions

User story #3018

closed

Log agent's report about failure in a dedicated logfile

Added by Vincent MEMBRÉ over 11 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
3
Assignee:
-
Category:
System integration
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

This feature consists in having a dedicated logfile containing informations about failure reports in Rudder.

It will be based on raw reports data filtered by raw reports status : result_error, result_repaired, log_repaired, log_warn.

It will not create a new table and use RuddersysEvents table to log reports

Log format expected is [Execution date] N:nodeId(Node hostname) S:report_status R:ruleId(rule name) D:directiveId(directive name) C:component name V:keyValue message

here is an example log :

[20/nov./2012 09:41 +0100] N:root(server.rudder.local) S:result_repaired R:hasPolicyServer-root(Rudder system policy: basic setup (common)) D:common-root(Common) C:Security parameters V:None Some internal security parameters were adjusted
[20/nov./2012 09:41 +0100] N:root(server.rudder.local) S:result_repaired R:root-DP(distributePolicy) D:root-distributePolicy(Distribute Policy) C:Check WebDAV credentials V:None The Rudder WebDAV user and password were updated
[20/nov./2012 09:45 +0100] N:root(server.rudder.local) S:result_repaired R:hasPolicyServer-root(Rudder system policy: basic setup (common)) D:common-root(Common) C:Security parameters V:None Some internal security parameters were adjusted
[20/nov./2012 09:45 +0100] N:root(server.rudder.local) S:result_repaired R:root-DP(distributePolicy) D:root-distributePolicy(Distribute Policy) C:Check WebDAV credentials V:None The Rudder WebDAV user and password were updated
[20/nov./2012 09:46 +0100] N:8fee32c0-00c8-4ae8-8597-5a54a9b6a523(node1.rudder.local) S:result_error R:d0c4a57e-4715-467b-a036-a907c0d9deff(Rule42) D:87097897-95cc-4868-ab39-690b6d11076d(apache) C:apacheServer V:None Could not restart Apache HTTPD
[20/nov./2012 09:46 +0100] N:8fee32c0-00c8-4ae8-8597-5a54a9b6a523(node1.rudder.local) S:result_error R:d0c4a57e-4715-467b-a036-a907c0d9deff(Rule42) D:87097897-95cc-4868-ab39-690b6d11076d(apache) C:apacheServer V:None Apache binary is not present. Something is wrong (installation failure ?)

This is the implementation part of #2988

pull request : https://github.com/Normation/rudder/pull/34

Actions #1

Updated by Vincent MEMBRÉ over 11 years ago

  • Tracker changed from User story to Enhancement
  • Subject changed from [Implementation] Log agent's report about failure in a dedicated logfile to Log agent's report about failure in a dedicated logfile
Actions #2

Updated by Jonathan CLARKE over 11 years ago

  • Target version set to 2.5.0~beta1
Actions #3

Updated by Vincent MEMBRÉ over 11 years ago

  • Description updated (diff)

A first functionnal review had been made, some corrections had to be made before going to technical review

i made a pull request for that feature

Actions #4

Updated by Vincent MEMBRÉ over 11 years ago

  • Status changed from New to In progress
Actions #5

Updated by François ARMAND over 11 years ago

Vincent, could you explain what are the expected modification so that it's possible to understand if they will take 5 minutes or 10 days ?

Actions #6

Updated by Vincent MEMBRÉ over 11 years ago

that should not take more than one day, certainly less

Actions #7

Updated by Vincent MEMBRÉ over 11 years ago

  • Status changed from In progress to 10
  • Assignee changed from Vincent MEMBRÉ to Jonathan CLARKE

The development part is finished and can now be functionnaly reviewed

Actions #8

Updated by François ARMAND over 11 years ago

  • Status changed from 10 to Pending technical review
  • Assignee deleted (Jonathan CLARKE)
Actions #9

Updated by Nicolas CHARLES about 11 years ago

  • Status changed from Pending technical review to 12
Actions #10

Updated by Nicolas CHARLES about 11 years ago

  • Status changed from 12 to Pending release

This seems valid, thank you

Actions #11

Updated by Matthieu CERDA about 11 years ago

  • Status changed from Pending release to Released
Actions #12

Updated by Jonathan CLARKE about 11 years ago

  • Project changed from 34 to Rudder
  • Parent task deleted (#2988)
Actions #13

Updated by Jonathan CLARKE about 11 years ago

  • Category set to 39
Actions #14

Updated by Benoît PECCATTE about 9 years ago

  • Category changed from 39 to System integration
Actions #15

Updated by Benoît PECCATTE almost 9 years ago

  • Tracker changed from Enhancement to User story
Actions

Also available in: Atom PDF