Project

General

Profile

Actions

Bug #2579

closed

On a node, if the common promise update.cf changes cfserved IP, a new line will be added to syslog-ng configuration

Added by Nicolas PERRON almost 12 years ago. Updated almost 12 years ago.

Status:
Released
Priority:
1
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

On a Rudder 2.4 node (SLES 11 SP1), after a change at /var/rudder/cfengine-community/inputs/common/1.0/update.cf about cfserved IP, a line has been added into /etc/syslog-ng/syslog-ng.conf.

In /var/rudder/cfengine-community/inputs/common/1.0/update.cf, line 66 :

bundle common server_info {
  vars:
    any::
-      "cfserved" string => "x.x.x.x";
+      "cfserved" string => "y.y.y.y";
[...]

In /etc/syslog-ng/syslog-ng.conf, end of line:

filter(f_local_rudder);facility(local6) and program('rudder.*);}destination loghost {tcp("x.x.x.x" port (514));};log {source(src);filter(f_local_rudder);destination(loghost);};
+filter(f_local_rudder);facility(local6) and program('rudder.*);}destination loghost {tcp("y.y.y.y" port (514));};log {source(src);filter(f_local_rudder);destination(loghost);};

It will ended by a multiplication of log messages in Rudder server logs.

Actions #1

Updated by Jonathan CLARKE almost 12 years ago

  • Subject changed from On a node, if the common promise update.cf change cfserved IP, a new line will be added to syslog.conf to On a node, if the common promise update.cf changes cfserved IP, a new line will be added to syslog-ng configuration
  • Status changed from New to 2

Note: this only happens with syslog-ng.

Actions #2

Updated by Jonathan CLARKE almost 12 years ago

  • Status changed from 2 to Pending technical review
Actions #3

Updated by Nicolas CHARLES almost 12 years ago

  • Status changed from Pending technical review to Released
  • % Done changed from 0 to 100

This looks correct, and much DRYer ! Thank you Jonathan

Actions

Also available in: Atom PDF