]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_argparse.py, cephtool/test.sh: fix blacklist with no nonce 648/head
authorDan Mick <dan.mick@inktank.com>
Fri, 27 Sep 2013 01:00:31 +0000 (18:00 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 27 Sep 2013 01:06:30 +0000 (18:06 -0700)
commit1ba7e47c6abe0699e77b94ccdf9cb2169f8d94f5
treeb86fdad20c5fbc6636c6fa45ca0a33e30d40de8c
parent60017e074bcbe67098476d3814bf46672bd2becb
ceph_argparse.py, cephtool/test.sh: fix blacklist with no nonce

It's legal to give a CephEntityAddr to osd blacklist with no nonce,
so allow it in the valid() method; also add validation of any nonce
given that it's a long >= 0.

Also fix comment on CephEntityAddr type description in MonCommands.h,
and add tests for invalid nonces (while fixing the existing tests to remove
the () around expect_false args).

Fixes: #6425
Signed-off-by: Dan Mick <dan.mick@inktank.com>
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/pybind/ceph_argparse.py