From: Nathan Cutler Date: Wed, 3 May 2017 09:39:27 +0000 (+0200) Subject: tests: upgrade/hammer-x: new v0-94-6-mon-overload subsuite X-Git-Tag: v10.2.8~6^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6a64f8901bb3b218a8dc58b11d6c13033d45f067;p=ceph.git tests: upgrade/hammer-x: new v0-94-6-mon-overload subsuite 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 --- 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 index 0000000000000..e69de29bb2d1d 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 index 0000000000000..ca99fee94fa84 --- /dev/null +++ b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/distros @@ -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 index 0000000000000..f761b530b14b6 --- /dev/null +++ b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/ignore.yaml @@ -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 index 0000000000000..e7301db730b85 --- /dev/null +++ b/qa/suites/upgrade/hammer-x/v0-94-6-mon-overload/v0-94-6-mon-overload.yaml @@ -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 +