Bug 1547685 - [RFE] dump all colonizer related logs in one standard location ideally in /var/log
Summary: [RFE] dump all colonizer related logs in one standard location ideally in /va...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-colonizer
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ramakrishna Reddy Yekulla
QA Contact: Rahul Hinduja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-21 17:34 UTC by Nag Pavan Chilakam
Modified: 2019-04-18 09:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-18 09:54:43 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/gluster gluster-colonizer issues 68 0 None None None 2018-11-20 04:32:25 UTC

Description Nag Pavan Chilakam 2018-02-21 17:34:06 UTC
Description of problem:
======================
we are currently dumping different colonizer logs or outputs at different locations
gluster-colonizer.log is being dumped in the $pwd from where colonizer script is deployed
README.txt which contains final snippet of deployment details is dumped in default directory ie ~ or  /root
similarly are the perf results dumped in ~ or /root/

We must be dumping all logs in one location ideally, it can be /var/log/gluster-colonizer, as a best practice

Version-Release number of selected component (if applicable):
=========
1.0.1-2

Comment 2 Dustin Black 2018-02-21 17:52:43 UTC
I chose not to put the main script log, gluster-colonizer.log, into the /var/log directory because it is not an ongoing service but a one-time utility. It seems reasonable to me for that reason that the main log output be placed into $pwd, but I'm willing to be persuaded otherwise.

The other files you mention are not exactly logs. The readme file I don't think belongs under /var/log at all. It could also be placed in $pwd, but I felt personally that placing it in /root made more sense.

The same goes for the performance script output. This file contains run results, not logs, and so I believe does not belong in /var/log. Again, /root seemed like the most logical place to me for this file to be placed.

Comment 3 Jeff Applewhite 2018-02-22 15:18:02 UTC
I think a reasonable fix is to create a symlink to things going in the log dir in $pwd or in $home so that they appear easily for the user but are centrally logged

Comment 4 Nag Pavan Chilakam 2018-04-18 09:57:19 UTC
(In reply to Jeff Applewhite from comment #3)
> I think a reasonable fix is to create a symlink to things going in the log
> dir in $pwd or in $home so that they appear easily for the user but are
> centrally logged

+1

Comment 7 Ramakrishna Reddy Yekulla 2018-11-20 04:32:26 UTC
I have opened an upstream RFE issue for the same, the runtime logging can happen on $PWD  but standard logging of colonizer as an application can be enabled.

Comment 8 Yaniv Kaul 2019-04-18 09:54:43 UTC
Closing all Colonizer BZs (as DEFERRED) as we do not intend to work on them for the time being.


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