]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: make crush update on osd start time out
authorSage Weil <sage@inktank.com>
Mon, 28 Oct 2013 22:56:15 +0000 (15:56 -0700)
committerSage Weil <sage@inktank.com>
Mon, 28 Oct 2013 22:58:29 +0000 (15:58 -0700)
commit177e2ab1cad325b875249a514bc1774ff32e0074
tree780c2ce37db45a4c6343f9c49fe0cbf92844fb27
parentac8dcdbeed0e756bb6735f13d948ae94ffe8daa0
init-ceph: make crush update on osd start time out

If the monitor is not currently available, this crush update would block
forever, preventing the OSD and (potentially) the rest of the system
from starting up.  Instead, make it time out after 10 seconds and then
abort startup.  This prevents startup of an OSD if we failed to update
the CRUSH position for some reason.

In fact, do not start up the OSD if the CRUSH update fails for any
reason--not just a timeout!

Works-around: #5612
Signed-off-by: Sage Weil <sage@inktank.com>
src/init-ceph.in