Bug 1389159
| Summary: | RHCS 2 daemons can not dump core because PR_SET_DUMPABLE is set to 0 after setuid call | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Brad Hubbard <bhubbard> |
| Component: | RADOS | Assignee: | Brad Hubbard <bhubbard> |
| Status: | CLOSED ERRATA | QA Contact: | Vidushi Mishra <vimishra> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0 | CC: | bhubbard, ceph-eng-bugs, dzafman, hnallurv, kchai, kdreyer, vumrao |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | 2.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | RHEL: ceph-10.2.5-7.el7cp Ubuntu: ceph_10.2.5-3redhat1xenial | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-03-14 15:46:06 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
Brad Hubbard
2016-10-27 03:34:30 UTC
(In reply to Brad Hubbard from comment #0) > > $ sudo systemd-coredumpctl > No coredumps found. Should read... $ sudo kill -SIGSEGV 49596 $ sudo systemd-coredumpctl No coredumps found. Harald Klein came up with the following workaround to get around this. "The following steps should enable core dump functionality if you did not adjust any settings in that regard already: 1) backup /lib/systemd/system/ceph-osd@.service 2) edit /lib/systemd/system/ceph-osd@.service and add the following in the [Service] section: LimitCORE=infinity 3) adjust sysctl: # sysctl -w fs.suid_dumpable=2 # sysctl -w kernel.core_uses_pid=1 # sysctl -w kernel.core_pattern=/tmp/core-%e-sig%s-user%u-group%g-pid%p-time%t 4) do a systemctl daemon-reload 5) verify that max core file size is unlimited, e.g. for osd id 1 in my test env: # ps auxw | grep ceph-osd ceph 2420 0.9 1.6 1234124 407088 ? Ssl 07:37 0:03 /usr/bin/ceph-osd -f --cluster ceph --id 1 --setuser ceph --setgroup ceph # cat /proc/2420/limits | grep core Max core file size unlimited unlimited bytes 6) the current settings should lead to a coredump being written as in the following example when the osd process segfaults: # ls -ltr /tmp/core* -rw-------. 1 root ceph 1048887296 Dec 30 07:48 /tmp/core-ceph-osd-sig11-user167-group167-pid2714-time1483102135" Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0514.html |