]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: osd add-no{up,down,in,out} - remove state checker 27605/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 16 Apr 2019 09:30:13 +0000 (17:30 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 16 Apr 2019 11:35:24 +0000 (19:35 +0800)
commit100bd226900ed57d5826f3f1ea1b076fe2804d71
treec8c3d7052f0d0ebe7bb3a96aefe798f35ba12242
parentbe4d819013565e74d354199bdb7bc23e1aaa4399
mon/OSDMonitor: osd add-no{up,down,in,out} - remove state checker

The existing sanity checkers are total unnecessary, e.g, noup indicates
we should not allow the corresponding osd to boot (marked as up)
later on, which has nothing to do with the current existing osd states.

By removing these checkers, we can:
$ ceph osd add-noup osd.nnn
$ ceph osd down osd.nnn

this way we can manually mark a specific osd as down and then ensure it
will not be automatically marked as up until the specific restrictions
has been resolved.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/OSDMonitor.cc