Project

General

Profile

Bug #51318

cephfs-mirror: do not terminate on SIGHUP

Added by Venky Shankar over 1 year ago. Updated over 1 year ago.

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

0%

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

Description

So, utilities such as logrotate would send SIGHUP to the daemon which would terminate it. This is being seen in some of the testing that being done.

But, the logrotate.conf that ceph uses looks like::

/var/log/ceph/*.log {
    rotate 7
    daily
    compress
    sharedscripts
    postrotate
        killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw rbd-mirror || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw|rbd-mirror" || true
    endscript
    missingok
    notifempty
    su root ceph
}

... which does not have an entry for cephfs-mirror. So, not sure why the mirror daemon would get terminated each day. But the daemon should handle SIGHUP anyway.


Related issues

Copied to CephFS - Backport #51413: pacific: cephfs-mirror: do not terminate on SIGHUP Resolved

History

#1 Updated by Venky Shankar over 1 year ago

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

#2 Updated by Patrick Donnelly over 1 year ago

  • Status changed from Fix Under Review to Pending Backport

#3 Updated by Backport Bot over 1 year ago

  • Copied to Backport #51413: pacific: cephfs-mirror: do not terminate on SIGHUP added

#4 Updated by Loïc Dachary over 1 year 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