]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: rbd: reproducer for rbd-on-EC issue
authorNathan Cutler <ncutler@suse.com>
Tue, 1 Aug 2017 13:17:35 +0000 (15:17 +0200)
committerSage Weil <sage@redhat.com>
Fri, 4 Aug 2017 02:54:17 +0000 (22:54 -0400)
This introduces a new "rbd/singleton-bluestore" suite because creating an rbd
on an EC-backed datapool will fail on filestore.

References: http://tracker.ceph.com/issues/20295
Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/suites/rbd/singleton-bluestore/% [new file with mode: 0644]
qa/suites/rbd/singleton-bluestore/all/issue-20295.yaml [new file with mode: 0644]
qa/suites/rbd/singleton-bluestore/objectstore/bluestore-comp.yaml [new symlink]
qa/suites/rbd/singleton-bluestore/objectstore/bluestore.yaml [new symlink]
qa/suites/rbd/singleton-bluestore/openstack.yaml [new file with mode: 0644]
qa/workunits/rbd/issue-20295.sh [new file with mode: 0755]

diff --git a/qa/suites/rbd/singleton-bluestore/% b/qa/suites/rbd/singleton-bluestore/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rbd/singleton-bluestore/all/issue-20295.yaml b/qa/suites/rbd/singleton-bluestore/all/issue-20295.yaml
new file mode 100644 (file)
index 0000000..9af52e0
--- /dev/null
@@ -0,0 +1,14 @@
+roles:
+- [mon.a, mgr.x, osd.0, osd.1, osd.2, client.0]
+- [mon.b, mgr.y, osd.3, osd.4, osd.5]
+- [mon.c, mgr.z, osd.6, osd.7, osd.8]
+- [osd.9, osd.10, osd.11]
+tasks:
+- install:
+- ceph:
+    log-whitelist:
+      - 'application not enabled'
+- workunit:
+    timeout: 30m
+    clients:
+      all: [rbd/issue-20295.sh]
diff --git a/qa/suites/rbd/singleton-bluestore/objectstore/bluestore-comp.yaml b/qa/suites/rbd/singleton-bluestore/objectstore/bluestore-comp.yaml
new file mode 120000 (symlink)
index 0000000..b23b2a7
--- /dev/null
@@ -0,0 +1 @@
+../../../../objectstore/bluestore-comp.yaml
\ No newline at end of file
diff --git a/qa/suites/rbd/singleton-bluestore/objectstore/bluestore.yaml b/qa/suites/rbd/singleton-bluestore/objectstore/bluestore.yaml
new file mode 120000 (symlink)
index 0000000..bd7d7e0
--- /dev/null
@@ -0,0 +1 @@
+../../../../objectstore/bluestore.yaml
\ No newline at end of file
diff --git a/qa/suites/rbd/singleton-bluestore/openstack.yaml b/qa/suites/rbd/singleton-bluestore/openstack.yaml
new file mode 100644 (file)
index 0000000..f4d1349
--- /dev/null
@@ -0,0 +1,4 @@
+openstack:
+  - volumes: # attached to each instance
+      count: 3
+      size: 30 # GB
diff --git a/qa/workunits/rbd/issue-20295.sh b/qa/workunits/rbd/issue-20295.sh
new file mode 100755 (executable)
index 0000000..3d617a0
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh -ex
+
+TEST_POOL=ecpool
+TEST_IMAGE=test1
+PGS=12
+
+ceph osd pool create $TEST_POOL $PGS $PGS erasure
+ceph osd pool application enable $TEST_POOL rbd
+ceph osd pool set $TEST_POOL allow_ec_overwrites true
+rbd --data-pool $TEST_POOL create --size 1024G $TEST_IMAGE
+rbd bench \
+    --io-type write \
+    --io-size 4096 \
+    --io-pattern=rand \
+    --io-total 100M \
+    $TEST_IMAGE
+
+echo "OK"