expect_false ceph osd pool set foo size 0
expect_false ceph osd pool set foo size 20
-ceph osd pool set foo size 3
-ceph osd getcrushmap -o crush
-crushtool -d crush -o crush.txt
-sed -i 's/max_size 10/max_size 3/' crush.txt
-crushtool -c crush.txt -o crush.new
-ceph osd setcrushmap -i crush.new
-expect_false ceph osd pool set foo size 4
-ceph osd setcrushmap -i crush
-rm -f crush crush.txt crush.new
-
# should fail due to safety interlock
expect_false ceph osd pool delete foo
expect_false ceph osd pool delete foo foo