Bug 1015630 - mmcount module referenced in /etc/rsyslog.d/gluster.conf is not available
Summary: mmcount module referenced in /etc/rsyslog.d/gluster.conf is not available
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribution
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: RHGS 2.1.2
Assignee: Bala.FA
QA Contact: Ben Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-04 16:14 UTC by Dustin Black
Modified: 2018-12-04 15:58 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.4.0.49rhs-1.el6rhs
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-23 23:19:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Dustin Black 2013-10-04 16:14:15 UTC
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

Comment 6 Gowrishankar Rajaiyan 2013-12-17 13:55:33 UTC
Is this not dependent on bug 1028300 ?

Comment 7 Bala.FA 2013-12-18 01:53:31 UTC
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.

Comment 8 Ben Turner 2014-01-07 19:48:15 UTC
Verified on glusterfs-3.4.0.55rhs-1.el6rhs.x86_64

Comment 9 Scott Haines 2014-04-23 23:19:43 UTC
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


Note You need to log in before you can comment on or make changes to this bug.