]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
nuke: fix sync before reboot timeout
authorSage Weil <sage@inktank.com>
Sat, 7 Dec 2013 01:42:23 +0000 (17:42 -0800)
committerSage Weil <sage@inktank.com>
Sat, 7 Dec 2013 01:42:23 +0000 (17:42 -0800)
commitc0a43275134a01b8b82ad427ef3e4d7e452f131f
tree8915f9d87ff81eaf8a2c2ea5e1dff228d3c6cf04
parentbec1ac191e1628842a2ca536654d058fce10b3cd
nuke: fix sync before reboot timeout

If you do 'timeout 5 sync' and sync hangs, timeout will block trying to
kill it.

Instead, just background sync, wait a few seconds, and reboot.  This means
we wait a few seconds even if sync returns immediately, but who cares!

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/nuke.py