Bug 1790788

Summary: [GSS][RFE] gluster-block logs are not rotating in Independent mode
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sonal <sarora>
Component: gluster-blockAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: Vivek Das <vdas>
Severity: low Docs Contact:
Priority: low    
Version: ocs-3.11CC: arukumar, asakthiv, bkunal, pprakash, prasanna.kalever, puebele, rhs-bugs, sabose, susgupta, xiubli
Target Milestone: ---Keywords: FutureFeature, ZStream
Target Release: OCS 3.11.z Batch Update 6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-block-0.2.1-37.el7rhgs Doc Type: Enhancement
Doc Text:
With this update, log rotation is now possible for gluster-block and tcmu-runner relevant logs.
Story Points: ---
Clone Of:
: 1850365 (view as bug list) Environment:
Last Closed: 2020-12-17 04:31: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: 1850365    

Description Sonal 2020-01-14 08:09:39 UTC
Description of problem:

There is no default log rotation configuration for gluster-block logs in OCS Independent mode.
Users manually write log rotate config to rotate logs files in /var/log/gluster-block.

Version-Release number of selected component (if applicable):
OCS 3.11.2 or onwards
glusterfs package: glusterfs-server-3.12.2-47.el7rhgs.x86_64
Openshift package: atomic-openshift-3.11.88-1.git.0.47f4e98.el7.x86_64

How reproducible:
100% reproducible

Steps to Reproduce:
1. Deploy OCS in Independent mode.
2. Check log file in /var/log/gluster-block

Actual results:
/var/log/gluster-block logs are not rotated.

Expected results:
/var/log/gluster-block logs should be rotated.

Comment 2 Prasanna Kumar Kalever 2020-01-14 08:27:54 UTC
Patches are merged upstream:
https://github.com/gluster/gluster-block/pull/163/commits/011366bffa274440a22a17c42823f40da530a75f

Comment 20 errata-xmlrpc 2020-12-17 04:31: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 (OpenShift Container Storage 3.11.z bug fix update), 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-2020:5602