Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 948730 - Mount command line is logged at inappropriate log level
Mount command line is logged at inappropriate log level
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents (Show other bugs)
6.4
All Linux
medium Severity low
: rc
: ---
Assigned To: David Vossel
Cluster QE
: EasyFix, Patch
Depends On:
Blocks: 835616 960054
  Show dependency treegraph
 
Reported: 2013-04-05 04:56 EDT by J.H.M. Dassen (Ray)
Modified: 2013-11-21 00:19 EST (History)
9 users (show)

See Also:
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 00:19:42 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 426173 None None None Never
Red Hat Product Errata RHBA-2013:1541 normal SHIPPED_LIVE resource-agents bug fix and enhancement update 2013-11-20 16:40:47 EST

  None (edit)
Description J.H.M. Dassen (Ray) 2013-04-05 04:56:32 EDT
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 15:45:47 EDT
Upstream patch related to this issue.

https://github.com/ClusterLabs/resource-agents/commit/8dc0e72bcec6f84fc23aa09dc924770d332aa823
Comment 6 michal novacek 2013-09-17 11:39:46 EDT
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 00:19:42 EST
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

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