Bug #2412
closedThe system technique for the policy server doesn't update the rsyslog.conf configuration on Ubuntu
Description
For some reason, on my ubuntu server, the rsyslog.conf isn't updated by the agent, even with the latest of the latest promises
So I have to manually update it to have the proper version.
Note : i didn't try to do any kind of debugging
Updated by Nicolas PERRON over 12 years ago
It seems that the promise about rsyslog doesn't work on CentOS6:
[vagrant@centos-6-vagrant ~]$ sudo /var/rudder/cfengine-community/bin/cf-agent -KI File /etc/rsyslog.d/pgsql.conf was marked for editing but could not be opened I: Report relates to a promise with handle "" I: Made in version 'not specified' of '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 96 I: Comment: Removing the logging of all in the database !! Inconsistent "package_add_command" constraints break this promise Promise (version not specified) belongs to bundle 'install_rsyslogd' in file '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 77 Comment: Installing rsyslog using apt backports !! Inconsistent "package_delete_command" constraints break this promise Promise (version not specified) belongs to bundle 'install_rsyslogd' in file '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 77 Comment: Installing rsyslog using apt backports !! Inconsistent "package_add_command" constraints break this promise Promise (version not specified) belongs to bundle 'install_rsyslogd' in file '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 83 Comment: Installing rsyslog_pgsql using apt backports !! Inconsistent "package_delete_command" constraints break this promise Promise (version not specified) belongs to bundle 'install_rsyslogd' in file '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 83 Comment: Installing rsyslog_pgsql using apt backports !! Inconsistent "package_add_command" constraints break this promise Promise (version not specified) belongs to bundle 'install_rsyslogd' in file '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 83 Comment: � !! Inconsistent "package_delete_command" constraints break this promise Promise (version not specified) belongs to bundle 'install_rsyslogd' in file '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 83 Comment: � Proposed executable file "/usr/bin/apt-get" doesn't exist The proposed package schedule command "/usr/bin/apt-get --yes install rsyslog-pgsql.* rsyslog.* " was not executable I: Report relates to a promise with handle "" I: Made in version 'not specified' of '/var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf' near line 83 I: Comment: ��� 8 ng rsyslog_pgsql using apt backports Bulk package schedule execution failed somewhere - unknown outcome for rsyslog-pgsql.* Bulk package schedule execution failed somewhere - unknown outcome for rsyslog.* R: Fatal : Can't install rsyslog or rsyslog_pgsql on the orchestrator ! R: Cannot update the pgsql config
Into /var/rudder/cfengine-community/inputs/distributePolicy/rsyslogConf.cf the comments are wrong about none-Debian5 :
[...] bundle agent install_rsyslogd { packages: policy_server.debian_5:: "rsyslog" package_policy => "add", package_method => debian_backports, classes => cf2_if_else("rsyslog_installed", "cant_install_rsyslog"), comment => "Installing rsyslog using apt backports"; "rsyslog-pgsql" package_policy => "add", package_method => debian_backports, classes => cf2_if_else("rsyslog_pgsql_installed", "cant_install_rsyslog_pgsql"), comment => "Installing rsyslog_pgsql using apt backports"; policy_server.!debian_5:: "rsyslog" package_policy => "add", package_method => generic, classes => cf2_if_else("rsyslog_installed", "cant_install_rsyslog"), comment => "Installing rsyslog using apt backports"; "rsyslog-pgsql" package_policy => "add", package_method => generic, classes => cf2_if_else("rsyslog_pgsql_installed", "cant_install_rsyslog_pgsql"), comment => "Installing rsyslog_pgsql using apt backports"; [...]
Updated by Nicolas PERRON over 12 years ago
This is a stdlib.cf bug on rudder-policy-templates / rudder-techniques . see #2413
Updated by Matthieu CERDA over 12 years ago
- Status changed from New to Pending technical review
- Priority changed from N/A to 2
- % Done changed from 0 to 100
Thanks to the update by NPE, I just installed a brand new Rudder node on the labo on an Ubuntu 11.04 machine and everything went fine. Looks OK to me !
Updated by Nicolas CHARLES over 12 years ago
- Status changed from Pending technical review to Released
Hum, ok. Don't see how it could solve my use, but if you say it's ok, it must be true
Thank you Matthieu