]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: add ceph-disk.sh activate for memstore 4244/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 1 Apr 2015 14:36:09 +0000 (16:36 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 5 Apr 2015 23:58:19 +0000 (01:58 +0200)
Add a test for the activation of the memstore objectstore and verify
that it works without specifying a journal.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
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