]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/mon/crush_ops.sh: test osd tree-from 20839/head
authorGu Zhongyan <guzhongyan@360.cn>
Mon, 12 Mar 2018 09:08:34 +0000 (17:08 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Mon, 12 Mar 2018 09:12:09 +0000 (17:12 +0800)
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
qa/workunits/mon/crush_ops.sh

index 40c10801df5c65c8627e0c883852996ce41dfeb2..6c13b6990812534a92626776177ef8409d32a88b 100755 (executable)
@@ -90,6 +90,9 @@ ceph osd tree | grep -c host1 | grep -q 1   # now an orphan
 ceph osd crush rm osd.$o1 host1
 ceph osd crush rm host1
 ceph osd tree | grep -c host1 | grep -q 0
+expect_false ceph osd tree-from host1
+ceph osd tree-from host2
+expect_false ceph osd tree-from osd.$o2
 
 expect_false ceph osd crush rm bar   # not empty
 ceph osd crush unlink host2