Project

General

Profile

Bug #11693

Updated by Kefu Chai almost 9 years ago

    
 If there are osd.5 is already up and running, following we use the command will try to start osd.5 again. 
 <pre> 
 /usr/bin/ceph-osd  
 "/usr/bin/ceph-osd -i 5 --pid-file /var/run/ceph/osd.5.pid /var/run/ceph/osd.5.pid" to 
 </pre> 

 this command fails, but start again the pid file for osd.5 is removed [1] after again. Although the command returns. 

 so we can not identify would fail, but the running osd.5 using the current pid file any more, hence not able to kill it using its pid. is removed. 

 as a result, @test/erasure-code/est-erasure-code.sh@ will leave us with some running OSD daemons after it returns, even if this test passes. 

 --- 
 [1] ceph-osd PS. ceph use @pidfile_write(g_conf)@ pidfile_write(g_conf) to write pid file, and use @atexit(pidfile_remove_void)@ atexit(pidfile_remove_void) to remove the pid. 

 This bug would cause we could not kill daemon using pid file. 

 It would not clear all osd daemon when return from test/erasure-code/est-erasure-code.sh script, even 
 if the script return ok.

Back