Bug 948730

Summary: Mount command line is logged at inappropriate log level
Product: Red Hat Enterprise Linux 6 Reporter: J.H.M. Dassen (Ray) <rdassen>
Component: resource-agentsAssignee: David Vossel <dvossel>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: medium    
Version: 6.4CC: agk, bz, cluster-maint, fdinitto, jruemker, mnovacek, pep, rbinkhor, slevine
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: resource-agents-3.9.2-25.el6 Doc Type: Bug Fix
Doc Text:
Cause: Mount command outputs as error msg. Consequence: Clutters logs, isn't an error. Fix: Set log level to debug. Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 05:19:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 835616, 960054    

Description J.H.M. Dassen (Ray) 2013-04-05 08:56:32 UTC
Description of problem:
Please backport <https://github.com/ClusterLabs/resource-agents/pull/220>.

Version-Release number of selected component (if applicable):
resource-agents-3.9.2-12.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Set up a cluster with an "fs" resource.
2. Start cluster or induce a failover of the "fs" resource.
  
Actual results:
Mount command lines (e.g. "[fs] mount -t ext4  /dev/mapper/VGmysqldb1-LVmysqldb /opt/MYSQLDB1") are logged at LOG_ERR syslog priority.

Expected results:
"mount" command lines are logged at LOG_DEBUG priority. They do not indicate error conditions, so LOG_ERR is unwarranted.

Comment 1 David Vossel 2013-05-29 19:45:47 UTC
Upstream patch related to this issue.

https://github.com/ClusterLabs/resource-agents/commit/8dc0e72bcec6f84fc23aa09dc924770d332aa823

Comment 6 michal novacek 2013-09-17 15:39:46 UTC
I have verified that the patch is applyied:


# rpm -q resource-agents
resource-agents-3.9.2-33.el6.x86_64

# rpm -qf /usr/share/cluster/utils/fs-lib.sh
resource-agents-3.9.2-33.el6.x86_64

# grep -A 5 'cf_log info "mounting' /usr/share/cluster/utils/fs-lib.sh
        ocf_log info "mounting $dev on $mp"
        ocf_log debug "mount $fstype_option $mount_options $dev $mp"
        mount $fstype_option $mount_options "$dev" "$mp"
        ret_val=$?
        if [ $ret_val -ne 0 ]; then
                ocf_log err

Comment 8 errata-xmlrpc 2013-11-21 05:19:42 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/RHBA-2013-1541.html