]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: upgrade/hammer-x: new v0-94-6-mon-overload subsuite
authorNathan Cutler <ncutler@suse.com>
Wed, 3 May 2017 09:39:27 +0000 (11:39 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Jun 2017 10:57:08 +0000 (12:57 +0200)
This is not a cherry-pick from master because direct upgrades
from hammer to kraken+ are not supported.

Fixes: http://tracker.ceph.com/issues/19829
References: http://tracker.ceph.com/issues/19508
Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/+ [new file with mode: 0644]
qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/distros [new symlink]
qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/ignore.yaml [new file with mode: 0644]
qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/v0-94-6-mon-overload.yaml [new file with mode: 0644]

diff --git a/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/+ b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/+
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/distros b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/distros
new file mode 120000 (symlink)
index 0000000..ca99fee
--- /dev/null
@@ -0,0 +1 @@
+../../../../distros/supported/
\ No newline at end of file
diff --git a/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/ignore.yaml b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/ignore.yaml
new file mode 100644 (file)
index 0000000..f761b53
--- /dev/null
@@ -0,0 +1,8 @@
+overrides:
+  ceph:
+    log-whitelist:
+    - scrub mismatch
+    - ScrubResult
+    conf:
+      mon:
+        mon warn on legacy crush tunables: false
diff --git a/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/v0-94-6-mon-overload.yaml b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/v0-94-6-mon-overload.yaml
new file mode 100644 (file)
index 0000000..e7301db
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# Test the expected behavior of the code that ensures proper encoding
+# when
+#
+#    CEPH_FEATURE_OSD_HITSET_GMT
+#
+# feature is not active (prevents mon overload on upgrade to jewel)
+#
+# for details, see http://tracker.ceph.com/issues/19508
+#
+roles:
+- - mon.a
+  - osd.0
+  - osd.1
+- - osd.2
+openstack:
+- volumes: # attached to each instance
+    count: 2
+    size: 10 # GB
+tasks:
+- install:
+    tag: v0.94.6
+- ceph:
+    fs: xfs
+- install.upgrade:
+    osd.0:
+- ceph.restart:
+    daemons: [osd.0]
+    wait-for-osds-up: false
+    wait-for-healthy: true
+- exec:
+    osd.0:
+      - |-
+        set -ex
+        ceph daemon osd.0 log flush
+        ! grep -E "failed to encode map e[0-9]+ with expected crc" /var/log/ceph/ceph-osd.0.log
+
+- install.upgrade:
+    osd.2:
+- ceph.restart:
+    daemons: [mon.a, osd.1, osd.2]
+    wait-for-healthy: false
+- exec:
+    mon.a:
+      - sleep 300 # http://tracker.ceph.com/issues/17808
+      - ceph osd set sortbitwise
+      - ceph osd set require_jewel_osds
+- ceph.healthy:
+- exec:
+    mon.a:
+      - |-
+        set -ex
+        ceph daemon mon.a log flush
+        ceph daemon osd.0 log flush
+        ceph daemon osd.1 log flush
+        ! grep -E "failed to encode map e[0-9]+ with expected crc" /var/log/ceph/ceph*.log
+
+    osd.2:
+      - |-
+        set -ex
+        ceph daemon osd.2 log flush
+        ! grep -E "failed to encode map e[0-9]+ with expected crc" /var/log/ceph/ceph*.log
+