Actions
Bug #2579
closedOn a node, if the common promise update.cf changes cfserved IP, a new line will be added to syslog-ng configuration
Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
System techniques
Target version:
Pull Request:
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.
Updated by Jonathan CLARKE over 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.
Updated by Jonathan CLARKE over 12 years ago
- Status changed from 2 to Pending technical review
Applied in commit:37fa488ae4c33a41652497c10b3727c90a74e329, see http://www.rudder-project.org/redmine/projects/policy-templates/repository/revisions/37fa488ae4c33a41652497c10b3727c90a74e329
Updated by Nicolas CHARLES over 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