Bug 1486541

Summary: [Gluster-block]: tcmu-runner logs should be configurable
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sweta Anandpara <sanandpa>
Component: tcmu-runnerAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED WORKSFORME QA Contact: Rahul Hinduja <rhinduja>
Severity: high Docs Contact:
Priority: unspecified    
Version: cns-3.9CC: amukherj, hchiramm, pkarampu, pprakash, rhs-bugs, rtalur, sanandpa, sarumuga, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1487620 (view as bug list) Environment:
Last Closed: 2019-03-05 08:03:29 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: 1487620    

Description Sweta Anandpara 2017-08-30 05:07:06 UTC
Description of problem:
======================
Raising a new bug for having an option to configure the location of tcmu-runner logs. As directed in https://bugzilla.redhat.com/show_bug.cgi?id=1477547#c19

Short summary: When we change /etc/sysconfig/gluster-blockd file and update the variable GB_LOGDIR to the new location, it is effective in logging only the gluster-block daemon logs at the new lcoation. Tcmu-runner logs continue to get appended to the older default location /var/log/gluster-block

More information, context and logs present in BZ 1477547.

Version-Release number of selected component (if applicable):
==========================================================
tcmu-runner-1.2.0-12.el7rhgs.x86_64
gluster-block-0.2.1-8.el7rhgs.x86_64
glusterfs-3.8.4-42.el7rhgs.x86_64


How reproducible:
================
Always

Comment 7 Humble Chirammal 2017-09-01 07:37:23 UTC
Regarding option 2, I think we need a change in glusterd systemd file and its better to put it as $TCMU_LOGDIR instead of $GB_LOGDIR"

Comment 11 Saravanakumar 2017-09-01 11:00:21 UTC
typo , /etc/systemd/gluster-blockd  should be /etc/sysconfig/gluster-blockd

Comment 13 Humble Chirammal 2017-09-05 11:34:14 UTC
We have implemented a hack in CNS which should take care of this in CNS 3.6 release, so its not a blocker atm in RHGS.

Comment 29 Prasanna Kumar Kalever 2019-03-05 08:03:29 UTC
There is already a way to tune logdir with tcmu-runner via cli  with option --tcmu-log-dir.

Looks like cns folks are already using it see comment 25.

In upstream I have posted a patch for tweaking LOGDIR via Env variable too, but that is no more needed for now.

Hence, Closing this bug as WORKS-FOR-ME, as there is no requirement for changes in tcmu-runner.


Thanks!