]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/suites/rados/cephadm/upgrade: add simple upgrade test
authorSage Weil <sage@redhat.com>
Fri, 14 Feb 2020 21:26:35 +0000 (21:26 +0000)
committerSage Weil <sage@redhat.com>
Fri, 14 Feb 2020 21:33:12 +0000 (15:33 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/suites/rados/cephadm/upgrade/% [new file with mode: 0644]
qa/suites/rados/cephadm/upgrade/.qa [new symlink]
qa/suites/rados/cephadm/upgrade/1-start.yaml [new file with mode: 0644]
qa/suites/rados/cephadm/upgrade/2-start-upgrade.yaml [new file with mode: 0644]
qa/suites/rados/cephadm/upgrade/3-wait.yaml [new file with mode: 0644]
qa/suites/rados/cephadm/upgrade/distro$ [new symlink]
qa/suites/rados/cephadm/upgrade/fixed-2.yaml [new symlink]

diff --git a/qa/suites/rados/cephadm/upgrade/% b/qa/suites/rados/cephadm/upgrade/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rados/cephadm/upgrade/.qa b/qa/suites/rados/cephadm/upgrade/.qa
new file mode 120000 (symlink)
index 0000000..fea2489
--- /dev/null
@@ -0,0 +1 @@
+../.qa
\ No newline at end of file
diff --git a/qa/suites/rados/cephadm/upgrade/1-start.yaml b/qa/suites/rados/cephadm/upgrade/1-start.yaml
new file mode 100644 (file)
index 0000000..dfeb64d
--- /dev/null
@@ -0,0 +1,4 @@
+tasks:
+- cephadm:
+    image: quay.io/ceph-ci/ceph:wip-sage-testing-2020-02-14-0900
+    cephadm_branch: wip-sage-testing-2020-02-14-0900
diff --git a/qa/suites/rados/cephadm/upgrade/2-start-upgrade.yaml b/qa/suites/rados/cephadm/upgrade/2-start-upgrade.yaml
new file mode 100644 (file)
index 0000000..a65d600
--- /dev/null
@@ -0,0 +1,5 @@
+tasks:
+- cephadm.shell:
+    env: [sha1]
+    mon.a:
+      - ceph upgrade start --image quay.io/ceph-ci/ceph:$sha1
diff --git a/qa/suites/rados/cephadm/upgrade/3-wait.yaml b/qa/suites/rados/cephadm/upgrade/3-wait.yaml
new file mode 100644 (file)
index 0000000..4d3e4f1
--- /dev/null
@@ -0,0 +1,9 @@
+tasks:
+- cephadm.shell:
+    env: [sha1]
+    mon.a:
+      - while ceph upgrade status | jq '.in_progress' | grep true ; do ceph orch ps ; ceph versions ; sleep 30 ; done
+      - ceph orch ps
+      - ceph versions
+      - ceph versions | jq -e '.overall | length == 1'
+      - ceph versions | jq -e '.overall | keys' | grep $sha1
diff --git a/qa/suites/rados/cephadm/upgrade/distro$ b/qa/suites/rados/cephadm/upgrade/distro$
new file mode 120000 (symlink)
index 0000000..d2dffb1
--- /dev/null
@@ -0,0 +1 @@
+../smoke/distro
\ No newline at end of file
diff --git a/qa/suites/rados/cephadm/upgrade/fixed-2.yaml b/qa/suites/rados/cephadm/upgrade/fixed-2.yaml
new file mode 120000 (symlink)
index 0000000..5c3e059
--- /dev/null
@@ -0,0 +1 @@
+../smoke/fixed-2.yaml
\ No newline at end of file