Bug 1321509 - Critical error message seen in glusterd log file, after logrotate
Summary: Critical error message seen in glusterd log file, after logrotate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: RHGS 3.1.3
Assignee: Atin Mukherjee
QA Contact: Byreddy
URL:
Whiteboard:
Depends On:
Blocks: 1311817
TreeView+ depends on / blocked
 
Reported: 2016-03-28 06:07 UTC by SATHEESARAN
Modified: 2016-09-17 16:44 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.7.9-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-23 05:14:00 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1240 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.1 Update 3 2016-06-23 08:51:28 UTC

Description SATHEESARAN 2016-03-28 06:07:48 UTC
Description of problem:
-----------------------
Installed the latest RHGS 3.1.3 ( glusterfs-3.7.9-1.el7rhgs )
After a weekend, logrotation of logfile has happened and observed error messages in glusterd log file


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEL 7.2
RHGS 3.1.3 nightly build ( glusterfs-3.7.9-1.el7rhgs )

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Install RHGS 3.1.3 nightly build and start glusterd
2. Perform few gluster operations and make sure that the glusterd log file has been updated with the logs
3. After a week, logrotation ( as per glusterfs logrotate conf )

Actual results:
---------------
Observed error messages in glusterd logfile as follows :
"[2016-03-28 08:25:48.232584] C [MSGID: 101012] [logging.c:2460:gf_cmd_log] 0-management: failed to open logfile "/var/log/glusterfs/cmd_history.log"
 [Invalid argument]"

Expected results:
-----------------
No errors should be seen in glusterd logs post logrotate

Comment 1 Atin Mukherjee 2016-03-28 11:51:32 UTC
This has been introduced by the fix for BZ 1276219 which has been targeted for 3.1.3 which makes this bug a mandatory fix for 3.1.3.

An upstream patch http://review.gluster.org/#/c/13829/ has been posted for review.

Comment 3 Mike McCune 2016-03-28 22:15:42 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 4 Atin Mukherjee 2016-03-31 13:15:35 UTC
Mainline patch : http://review.gluster.org/#/c/13829/
3.7 patch : http://review.gluster.org/13847
downstream patch : https://code.engineering.redhat.com/gerrit/71161

Comment 8 Byreddy 2016-05-02 04:34:51 UTC
Verified this bug using the nightly build "glusterfs-3.7.9-2"

No critical error message observed related to cmd_history log rotate mentioned in description section.

Moving to verified state.

Comment 9 Byreddy 2016-05-02 04:36:40 UTC
Removed the blocker BZ tagged.

Comment 11 errata-xmlrpc 2016-06-23 05:14:00 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.

https://access.redhat.com/errata/RHBA-2016:1240


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