Actions
Bug #11693
closedpidfile is overwritten and removed if the ceph-osd with the specified pidfile is already running
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
If osd.5 is already up and running, following command will try to start osd.5 again.
/usr/bin/ceph-osd -i 5 --pid-file /var/run/ceph/osd.5.pid
this command fails, but the pid file for osd.5 is removed [1] after the command returns.
so we can not identify the running osd.5 using the pid file any more, hence not able to kill it using its pid.
as a result, test/erasure-code/test-erasure-code.sh
will leave us with some running OSD daemons after it returns, even if this test passes.
---
[1] ceph-osd use pidfile_write(g_conf)
to write pid file, use atexit(pidfile_remove_void)
to remove the pid file.
Updated by Kefu Chai almost 9 years ago
- Subject changed from Do not rewrite and remove pidfile when there are ceph-osd is already running to pidfile is overwritten and removed if the ceph-osd with the specified pidfile is already running
Updated by Kefu Chai almost 9 years ago
- Status changed from New to Fix Under Review
Updated by Loïc Dachary almost 9 years ago
- Assignee set to Kefu Chai
- Priority changed from High to Urgent
Updated by Kefu Chai almost 9 years ago
- Source changed from other to Community (dev)
Updated by Kefu Chai almost 9 years ago
- Status changed from Fix Under Review to Resolved
Actions