Bug 1351375 - Rados Gateway (RGW) logrotate script references wrong path
Summary: Rados Gateway (RGW) logrotate script references wrong path
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Distribution
Version: 1.3.2
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: 2.0
Assignee: ceph-eng-bugs
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-29 22:39 UTC by Michael J. Kidd
Modified: 2016-06-30 16:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-30 16:55:35 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1305981 0 unspecified CLOSED [RHCeph 1.3.2] rgw logs in '/var/log/radosgw/ 2022-02-21 18:03:29 UTC

Internal Links: 1305981

Description Michael J. Kidd 2016-06-29 22:39:44 UTC
Description of problem:
In the ceph-radosgw package associated with:
https://access.redhat.com/errata/RHBA-2016:0313

Which 'fixes' BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1305981

The default log path for the RadosGW was updated to be /var/log/ceph/radosgw/, however the logrotate script still references /var/log/radosgw/.

This will cause the RGW to not be 'HUP'd whenever the log rotation occurs and RGW logging will stop writing at the first log rotation event.

Version-Release number of selected component (if applicable):
1.3.2 and all prior.


How reproducible:
Every time

Steps to Reproduce:
1. Install ceph-radosgw package
2. Confirm /etc/logrotate.d/radosgw script points to the rotation path of:
 /var/log/radosgw/*.log

Actual results:
 - Log rotation fails to properly rotate and/or restart the RGW process.

Expected results:
 - Log rotation to rotate the RGW logs in the new default path, and HUP RGW to re-open the log file after rotation.

Additional info:
n/a

Comment 2 Ken Dreyer (Red Hat) 2016-06-30 16:48:23 UTC
I'm having trouble seeing how bz 1305981 altered the default logging path to /var/log/ceph/radosgw. Michael, can you please provide more information there?

Boris, can you confirm?

Comment 3 Michael J. Kidd 2016-06-30 16:55:35 UTC
Sorry Ken, et al
  I mis-read the other BZ, and had someone else mention it in a way that suggested everything now went to /var/log/ceph/radosgw, so my pre-disposition to that thought skewed my reading.  I'm closing this BZ.. it's based on an incorrect reading of the other BZ.

Comment 4 Ken Dreyer (Red Hat) 2016-06-30 16:58:20 UTC
Thanks!


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