From: Gu Zhongyan Date: Mon, 12 Mar 2018 09:08:34 +0000 (+0800) Subject: qa/workunits/mon/crush_ops.sh: test osd tree-from X-Git-Tag: v13.1.0~583^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=241af6c72ed1f78bb2e98db816a8cfb772dc20f8;p=ceph.git qa/workunits/mon/crush_ops.sh: test osd tree-from Signed-off-by: Gu Zhongyan --- diff --git a/qa/workunits/mon/crush_ops.sh b/qa/workunits/mon/crush_ops.sh index 40c10801df5c..6c13b6990812 100755 --- a/qa/workunits/mon/crush_ops.sh +++ b/qa/workunits/mon/crush_ops.sh @@ -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