Description of problem: Related to BZ 1000075. However, with RHS 2.1 GA, the /etc/rsyslog.d/gluster.conf file still attempts to load the mmcount module, which is not available in the included rsyslog package and no rsyslog-mmcount package is available Version-Release number of selected component (if applicable): RHS 2.1 GA rsyslog-5.8.10-7.el6_4.x86_64 How reproducible: Consistently Steps to Reproduce: 1. Install RHS 2.1 GA 2. Check syslog Actual results: # grep syslog /var/log/messages Oct 4 11:27:57 n0 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1294" x-info="http://www.rsyslog.com"] start Oct 4 11:27:57 n0 rsyslogd-2066: could not load module '/lib64/rsyslog/mmcount.so', dlopen: /lib64/rsyslog/mmcount.so: cannot open shared object file: No such file or directory [try http://www.rsyslog.com/e/2066 ] Oct 4 11:27:57 n0 rsyslogd: the last error occured in /etc/rsyslog.d/gluster.conf, line 17:"$ModLoad mmcount" Oct 4 11:27:57 n0 rsyslogd-3003: invalid or yet-unknown config file command - have you forgotten to load a module? [try http://www.rsyslog.com/e/3003 ] Oct 4 11:27:57 n0 rsyslogd: the last error occured in /etc/rsyslog.d/gluster.conf, line 18:"$mmcountKey gf_code # start counting value of gf_code" Oct 4 11:27:57 n0 rsyslogd: the last error occured in /etc/rsyslog.d/gluster.conf, line 28:"if $app-name contains 'gluster' then :mmcount:" Oct 4 11:27:57 n0 rsyslogd: warning: selector line without actions will be discarded Oct 4 11:27:57 n0 rsyslogd: the last error occured in /etc/rsyslog.conf, line 31:"$IncludeConfig /etc/rsyslog.d/*.conf" Oct 4 11:27:57 n0 rsyslogd-2124: CONFIG ERROR: could not interpret master config file '/etc/rsyslog.conf'. [try http://www.rsyslog.com/e/2124 ] Expected results: mmcount module should be included in the build and load properly, or the references in the config file should otherwise be removed. Additional info: # grep mmcount /etc/rsyslog.d/gluster.conf ## The mmcount module provides the capability to count log messages by $ModLoad mmcount $mmcountKey gf_code # start counting value of gf_code ## Pass logs to mmcount if app-name is 'gluster' if $app-name contains 'gluster' then :mmcount: ## Sample configuration to send a email alert for every 50th mmcount
Patches under review https://code.engineering.redhat.com/gerrit/14225 https://code.engineering.redhat.com/gerrit/14226
Is this not dependent on bug 1028300 ?
No. This bug deals with rsyslog config file gluster.conf which has reference to mmcount. This fix keeps gluster.conf.example file than gluster.conf to avoid rsyslog reading it.
Verified on glusterfs-3.4.0.55rhs-1.el6rhs.x86_64
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0208.html