Project

General

Profile

Actions

Bug #3813

closed

radosgw doesn't have a logrotate script

Added by Faidon Liambotis over 11 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Currently there's no logrotate configuration for radosgw at all. Even if one sets "log file" to /var/log/ceph/something.log and installs "ceph" (not a strict dependency), the ceph logrotate post-rotate script doesn't take care of reloading radosgw as to reopen its log files, which keeps holding the fd to the deleted file open quickly filling up the disk.

Actions #1

Updated by Faidon Liambotis over 11 years ago

Note that the official docs suggest to put "log file = /var/log/ceph/radosgw.log" too. If "ceph" isn't installed, this just fills the logs. If it is, logs are rotated, but kept open, resulting in radosgw writing to a deleted file until the disks fills up (and quickly in my case).

A separate logrotate.d could interfere with ceph's logrotate config. Either /etc/logrotate.d/ceph should get "radosgw" on its for loop and perl -ne regexp there, or /etc/logrotate.d/radosgw should be shipped and documentation updated to suggest using /var/log/radosgw/radosgw.log instead.

Actions #2

Updated by Sage Weil over 11 years ago

  • Status changed from New to 12
  • Assignee set to Yehuda Sadeh
  • Priority changed from Normal to Urgent

Given that radosgw gets installed without ceph, it seems like teh viable optoins are putting the logrotate cofnig in a mutual dependency, or using /var/log/radosgw..?

Actions #3

Updated by Sage Weil over 11 years ago

  • Priority changed from Urgent to High
Actions #4

Updated by Sage Weil over 11 years ago

Let's go with /var/log/radosgw and a separate logrotate script. Simpler!

Actions #5

Updated by Yehuda Sadeh about 11 years ago

  • Status changed from 12 to Resolved

Fixed, commit:c8eace6ff0bbb38bf317b9db2ffba57c3d128693

Actions #6

Updated by John Spray over 6 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)

Bulk reassign of radosgw category to RGW project.

Actions

Also available in: Atom PDF