tests: add ceph-disk.sh activate for memstore
[ceph.git] / src / test / ceph-disk.sh
index 25c00e3e468f7105cc89e88f99f6ac7c9ded3edd..6ec1ae9747ca30fce94db23f5e9d50583a001dd4 100755 (executable)
@@ -407,11 +407,25 @@ function activate_dev_body() {
     local journal=$2
     local newdisk=$3
 
+    setup
+    run_mon
+    #
+    # Create an OSD without a journal and an objectstore
+    # that does not use a journal.
+    #
+    ceph-disk zap $disk || return 1
+    CEPH_ARGS="$CEPH_ARGS --osd-objectstore=memstore" \
+        test_activate $disk ${disk}p1 || return 1
+    kill_daemons
+    umount ${disk}p1 || return 1
+    teardown
+
     setup
     run_mon
     #
     # Create an OSD with data on a disk, journal on another
     #
+    ceph-disk zap $disk || return 1
     test_activate $disk ${disk}p1 $journal || return 1
     kill_daemons
     umount ${disk}p1 || return 1