Bug 1939633

Summary: RFE - 5.0 Cephadm - Need support for cephadm daemon logs redirection to non default files other than fixed files and also to a non default directory or to an external path
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Preethi <pnataraj>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED WONTFIX QA Contact: Vasishta <vashastr>
Severity: low Docs Contact: Karen Norteman <knortema>
Priority: low    
Version: 5.0CC: hyelloji, kdreyer, mgowri, saraut, vereddy
Target Milestone: ---Keywords: FutureFeature
Target Release: 7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-05 15:29:12 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:

Description Preethi 2021-03-16 17:34:59 UTC
Description of problem:
RFE - 5.0 Cephadm - Need support for cephadm daemon logs redirection to  non default files other than fixed files and also to a non default directory or to an external path

logged upstream tracker for the same:
https://tracker.ceph.com/issues/49838



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Sebastian Wagner 2021-05-31 12:43:01 UTC
*** Bug 1926162 has been marked as a duplicate of this bug. ***

Comment 3 Preethi 2021-07-09 07:37:25 UTC
This support is needed to provide flexibility to the customer to save the logs wherever they want apart from the fixed or default location what we have now. ex: NFS share. external devices

Comment 4 Sebastian Wagner 2021-07-09 08:51:11 UTC
There are plenty of ways, customers can post-process logs. 

In case they're using journald, the can use rsyslog, syslog, imjournal, logstash, symlinks or bind mounts to get the logs where ever they want to have them. 
In case they're logging to files, they can use rsync or symlinks to get the logs where ever they want to have them. 

If they're disabling the journald integration, they're loosing a lot of features and flexibility. I'd really like to avoid re-implementing journald here and this BZ here feels like an inferior workaround compared to the proper solution to their problem. What do you think?

Comment 5 Preethi 2021-07-14 06:44:22 UTC
@Sebastian, We have an option to redirect ansible logs in 4.x. Similarly we want atleast for cephadm log redirection to non default path. Daemon logs however,we have journald option to make use of it as you said.