3 POOL_NAME=rbd_test_validate_pool
7 ceph osd pool delete $POOL_NAME $POOL_NAME --yes-i-really-really-mean-it || true
12 ceph osd pool create $POOL_NAME $PG_NUM
13 ceph osd pool mksnap $POOL_NAME snap
14 rbd pool init $POOL_NAME
17 trap tear_down EXIT HUP INT
20 # creating an image in a pool-managed snapshot pool should fail
21 rbd create --pool $POOL_NAME --size 1 foo && exit 1 || true
23 # should succeed if images already exist in the pool
24 rados --pool $POOL_NAME create rbd_directory
25 rbd create --pool $POOL_NAME --size 1 foo