]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
upgrade/hammer-x: verify shec before the full upgrade
authorLoic Dachary <ldachary@redhat.com>
Tue, 29 Nov 2016 08:49:15 +0000 (09:49 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 29 Nov 2016 08:49:15 +0000 (09:49 +0100)
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 <loic@dachary.org>
suites/upgrade/hammer-x/stress-split-erasure-code/5-workload/ec-no-shec.yaml [new file with mode: 0644]
suites/upgrade/hammer-x/stress-split-erasure-code/9-workload/ec-no-shec.yaml [deleted file]

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 (file)
index 0000000..7be49a3
--- /dev/null
@@ -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 (file)
index 7be49a3..0000000
+++ /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"