Project

General

Profile

Bug #43428

rbd-mirror daemons don't logrotate correctly

Added by Oliver Freyermuth 9 months ago. Updated 8 months ago.

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

0%

Source:
Tags:
Backport:
nautilus,mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Currently, /etc/logrotate.d/ceph shipped with ceph-base has the following postrotate command:

killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw" || true

rbd-mirror is missing here, and expectedly new log files stay empty after the old one was rotated.
I did not yet test whether rbd-mirror responds to SIGHUP correctly, but potentially the fix is as easy as adding it to the list.


Related issues

Copied to rbd - Backport #43498: mimic: rbd-mirror daemons don't logrotate correctly Resolved
Copied to rbd - Backport #43499: luminous: rbd-mirror daemons don't logrotate correctly Resolved
Copied to rbd - Backport #43500: nautilus: rbd-mirror daemons don't logrotate correctly Resolved

History

#1 Updated by Mykola Golub 9 months ago

  • Status changed from New to In Progress
  • Assignee set to Mykola Golub

#2 Updated by Mykola Golub 9 months ago

  • Backport set to nautilus,mimic,luminous

#3 Updated by Mykola Golub 9 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 32456

#4 Updated by Nathan Cutler 9 months ago

Backports will need to come to terms with the fact that the master PR touches "cephadm" which does not exist in any of the stable versions.

#5 Updated by Jason Dillaman 9 months ago

  • Status changed from Fix Under Review to Pending Backport

#6 Updated by Nathan Cutler 9 months ago

  • Copied to Backport #43498: mimic: rbd-mirror daemons don't logrotate correctly added

#7 Updated by Nathan Cutler 9 months ago

  • Copied to Backport #43499: luminous: rbd-mirror daemons don't logrotate correctly added

#8 Updated by Nathan Cutler 9 months ago

  • Copied to Backport #43500: nautilus: rbd-mirror daemons don't logrotate correctly added

#9 Updated by Nathan Cutler 8 months ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF