]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/ceph_argparse.py:'timeout' must in kwargs when call run_in_thread
authoryangDL <455619311@qq.com>
Thu, 26 Apr 2018 06:53:08 +0000 (14:53 +0800)
committeryangdeliu <yangdeliu@szsandstone.com>
Thu, 26 Apr 2018 09:53:12 +0000 (17:53 +0800)
commit35475e39e34f27863e4822dbdcf88084ae0e838a
tree874f1df0b8abac74af8807a6bd7eb1a41ff5b7e5
parent8e31e6ded4e42c00342449c9fda30116771dc779
pybind/ceph_argparse.py:'timeout' must in kwargs when call run_in_thread

timeout is ignored by C API, but is useful in python threads.
Function "run_in_thread" get "timeout" from kwargs,but other functions passing
"timeout" in args, so "timeout" is 0 forever in run_in_thread.
It will be polling forever when cluster unhealthy until recv signal like ctrl+c or cluster become healthy.
So pass 'timeout' like 'timeout=timeout'

Signed-off-by: yangdeliu <yangdeliu@szsandstone.com>
src/pybind/ceph_argparse.py