From 241af6c72ed1f78bb2e98db816a8cfb772dc20f8 Mon Sep 17 00:00:00 2001 From: Gu Zhongyan Date: Mon, 12 Mar 2018 17:08:34 +0800 Subject: [PATCH] qa/workunits/mon/crush_ops.sh: test osd tree-from Signed-off-by: Gu Zhongyan --- qa/workunits/mon/crush_ops.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/workunits/mon/crush_ops.sh b/qa/workunits/mon/crush_ops.sh index 40c10801df5..6c13b699081 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 -- 2.47.3