]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/rados: test for recovery_unfound bug
authorSage Weil <sage@redhat.com>
Thu, 16 Nov 2017 21:20:01 +0000 (15:20 -0600)
committerDavid Zafman <dzafman@redhat.com>
Mon, 22 Jan 2018 18:38:33 +0000 (10:38 -0800)
See http://tracker.ceph.com/issues/22145

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 25b7965f8803ae68759973f4afe515d3da9c0f3f)

qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml [new file with mode: 0644]

diff --git a/qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml b/qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml
new file mode 100644 (file)
index 0000000..6d77cc7
--- /dev/null
@@ -0,0 +1,53 @@
+roles:
+- - mon.a
+  - mon.b
+  - mon.c
+  - mgr.x
+  - osd.0
+  - osd.1
+openstack:
+  - volumes: # attached to each instance
+      count: 2
+      size: 20 # GB
+tasks:
+- install:
+- ceph:
+    fs: xfs
+    conf:
+      osd:
+        osd recovery sleep: .1
+        osd objectstore: filestore
+    log-whitelist:
+      - \(POOL_APP_NOT_ENABLED\)
+      - \(OSDMAP_FLAGS\)
+      - \(OSD_
+      - \(OBJECT_
+      - \(PG_
+      - overall HEALTH
+- exec:
+    osd.0:
+      - ceph osd pool create foo 32
+      - ceph osd pool application enable foo foo
+      - rados -p foo bench 30 write -b 4096 --no-cleanup
+      - ceph osd set noup
+- ceph.restart:
+    daemons: [osd.0]
+    wait-for-up: false
+    wait-for-healthy: false
+- exec:
+    osd.0:
+      - sleep 5
+      - rados -p foo bench 3 write -b 4096 --no-cleanup
+      - ceph osd unset noup
+      - sleep 10
+      - ceph osd set noup
+- ceph.restart:
+    daemons: [osd.1]
+    wait-for-up: false
+    wait-for-healthy: false
+- exec:
+    osd.0:
+      - ceph osd out 0
+      - sleep 10
+      - ceph osd unset noup
+- ceph.healthy: