Project

General

Profile

Actions

Bug #11693

closed

pidfile is overwritten and removed if the ceph-osd with the specified pidfile is already running

Added by Xinze Chi almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% 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.

Actions #1

Updated by Kefu Chai almost 9 years ago

  • Description updated (diff)
Actions #2

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
Actions #3

Updated by Kefu Chai almost 9 years ago

  • Description updated (diff)
Actions #4

Updated by Kefu Chai almost 9 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Loïc Dachary almost 9 years ago

  • Assignee set to Kefu Chai
  • Priority changed from High to Urgent
Actions #6

Updated by Kefu Chai almost 9 years ago

  • Source changed from other to Community (dev)
Actions #7

Updated by Kefu Chai almost 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF