2012-07-20 04:56:56 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
ceph osd pool create foo 123 123
|
|
|
|
ceph osd pool create fooo 123
|
|
|
|
|
2012-11-12 20:01:07 +00:00
|
|
|
ceph osd pool create foo 123 # idempotent
|
2012-07-20 04:56:56 +00:00
|
|
|
|
2013-02-19 23:54:52 +00:00
|
|
|
ceph osd pool set foo size 1
|
|
|
|
ceph osd pool set foo size 4
|
|
|
|
ceph osd pool set foo size 10
|
|
|
|
ceph osd pool set foo size 0 && exit 1 || true
|
|
|
|
ceph osd pool set foo size 20 && exit 1 || true
|
|
|
|
|
2013-01-28 22:20:42 +00:00
|
|
|
# should fail due to safety interlock
|
2013-02-19 23:54:07 +00:00
|
|
|
ceph osd pool delete foo && exit 1 || true
|
|
|
|
ceph osd pool delete foo foo && exit 1 || true
|
|
|
|
ceph osd pool delete foo foo --force && exit 1 || true
|
|
|
|
ceph osd pool delete foo fooo --yes-i-really-mean-it && exit 1 || true
|
|
|
|
ceph osd pool delete foo --yes-i-really-mean-it foo && exit 1 || true
|
2013-01-28 22:20:42 +00:00
|
|
|
|
|
|
|
ceph osd pool delete fooo fooo --yes-i-really-really-mean-it
|
2013-01-26 21:45:12 +00:00
|
|
|
ceph osd pool delete foo foo --yes-i-really-really-mean-it
|
2013-01-28 22:20:42 +00:00
|
|
|
|
|
|
|
# idempotent
|
2013-01-26 21:45:12 +00:00
|
|
|
ceph osd pool delete foo foo --yes-i-really-really-mean-it
|
2013-01-28 22:20:42 +00:00
|
|
|
ceph osd pool delete fooo fooo --yes-i-really-really-mean-it
|
|
|
|
ceph osd pool delete fooo fooo --yes-i-really-really-mean-it
|
2012-07-20 04:56:56 +00:00
|
|
|
|
2013-01-28 22:20:42 +00:00
|
|
|
# non-existent pool
|
2013-02-20 16:44:03 +00:00
|
|
|
ceph osd pool delete fuggg fuggg --yes-i-really-really-mean-it
|
2012-07-20 04:56:56 +00:00
|
|
|
|
|
|
|
echo OK
|
|
|
|
|
|
|
|
|