From: Loic Dachary Date: Tue, 29 Nov 2016 08:49:15 +0000 (+0100) Subject: upgrade/hammer-x: verify shec before the full upgrade X-Git-Tag: v10.2.6~165^2^2~11^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2c1df81e58e64650816bb9ee55cfc14276a0b047;p=ceph.git upgrade/hammer-x: verify shec before the full upgrade The hammer-x/stress-split-erasure-code upgrade sequence comes from hammer-x/stress-split and was modified to fully upgrade the cluster. It previously upgraded only half of it. Verifying that the shec plugin is not available and that trying to set it does not crash the OSD or the MON must be tried before the upgrade is complete. Signed-off-by: Loic Dachary --- diff --git a/suites/upgrade/hammer-x/stress-split-erasure-code/5-workload/ec-no-shec.yaml b/suites/upgrade/hammer-x/stress-split-erasure-code/5-workload/ec-no-shec.yaml new file mode 100644 index 0000000000000..7be49a3e2ad7e --- /dev/null +++ b/suites/upgrade/hammer-x/stress-split-erasure-code/5-workload/ec-no-shec.yaml @@ -0,0 +1,9 @@ +# +# The shec plugin cannot be used because some OSD are not upgraded +# yet and would crash. +# +tasks: +- exec: + mon.a: + - |- + sudo ceph osd erasure-code-profile set profile-shec k=2 m=1 c=1 plugin=shec 2>&1 | grep "unsupported by" diff --git a/suites/upgrade/hammer-x/stress-split-erasure-code/9-workload/ec-no-shec.yaml b/suites/upgrade/hammer-x/stress-split-erasure-code/9-workload/ec-no-shec.yaml deleted file mode 100644 index 7be49a3e2ad7e..0000000000000 --- a/suites/upgrade/hammer-x/stress-split-erasure-code/9-workload/ec-no-shec.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# -# The shec plugin cannot be used because some OSD are not upgraded -# yet and would crash. -# -tasks: -- exec: - mon.a: - - |- - sudo ceph osd erasure-code-profile set profile-shec k=2 m=1 c=1 plugin=shec 2>&1 | grep "unsupported by"