From 397521bdb9ec5fb3a50052e470304d1177924cc7 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Wed, 28 Mar 2018 14:47:11 -0700 Subject: [PATCH] autotest_common.sh: handle ceph luminous in rbd_setup unlike previous implementations of ceph, luminous (which ships with fedora 27) does not create a default pool for us. In case we are on a system using luminous, we need to create that pool ourselves. Change-Id: I183dc4fff6b92f7b270bd5a5d05947f0d99e9d04 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/405703 Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris Tested-by: SPDK Automated Test System --- test/common/autotest_common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 06c13bbbf..f4b71c546 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -329,9 +329,13 @@ function start_iscsi_service() { function rbd_setup() { if hash ceph; then + export PG_NUM=128 export RBD_POOL=rbd export RBD_NAME=foo $rootdir/scripts/ceph/start.sh + + ceph osd pool create $RBD_POOL $PG_NUM || true + rbd pool init $RBD_POOL || true rbd create $RBD_NAME --size 1000 fi }