]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: add rgw/upgrade suite
authorCasey Bodley <cbodley@redhat.com>
Wed, 1 Mar 2023 23:43:03 +0000 (18:43 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 11 Apr 2023 13:16:08 +0000 (09:16 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 2e9f83b8d6a72888f0297fa64464b704a71094aa)

12 files changed:
qa/suites/rgw/upgrade/% [new file with mode: 0644]
qa/suites/rgw/upgrade/.qa [new symlink]
qa/suites/rgw/upgrade/1-install/pacific.yaml [new file with mode: 0644]
qa/suites/rgw/upgrade/1-install/quincy.yaml [new file with mode: 0644]
qa/suites/rgw/upgrade/2-setup.yaml [new file with mode: 0644]
qa/suites/rgw/upgrade/3-upgrade-sequence/osds-then-rgws.yaml [new file with mode: 0644]
qa/suites/rgw/upgrade/3-upgrade-sequence/rgws-then-osds.yaml [new file with mode: 0644]
qa/suites/rgw/upgrade/cluster.yaml [new symlink]
qa/suites/rgw/upgrade/frontend [new symlink]
qa/suites/rgw/upgrade/objectstore [new symlink]
qa/suites/rgw/upgrade/overrides.yaml [new file with mode: 0644]
qa/suites/rgw/upgrade/supported-random-distro$ [new symlink]

diff --git a/qa/suites/rgw/upgrade/% b/qa/suites/rgw/upgrade/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rgw/upgrade/.qa b/qa/suites/rgw/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/rgw/upgrade/1-install/pacific.yaml b/qa/suites/rgw/upgrade/1-install/pacific.yaml
new file mode 100644 (file)
index 0000000..e98cb55
--- /dev/null
@@ -0,0 +1,9 @@
+overrides:
+  ragweed:
+    default-branch: ceph-master # ceph-pacific doesn't have tox, but tests are the same
+
+tasks:
+- install:
+    branch: pacific
+    exclude_packages:
+      - ceph-volume
diff --git a/qa/suites/rgw/upgrade/1-install/quincy.yaml b/qa/suites/rgw/upgrade/1-install/quincy.yaml
new file mode 100644 (file)
index 0000000..5c14594
--- /dev/null
@@ -0,0 +1,7 @@
+overrides:
+  ragweed:
+    default-branch: ceph-master # ceph-quincy doesn't have tox, but tests are the same
+
+tasks:
+- install:
+    branch: quincy
diff --git a/qa/suites/rgw/upgrade/2-setup.yaml b/qa/suites/rgw/upgrade/2-setup.yaml
new file mode 100644 (file)
index 0000000..f662739
--- /dev/null
@@ -0,0 +1,8 @@
+tasks:
+- ceph:
+- rgw: [client.0, client.1]
+- tox: [client.0, client.1]
+- print: "installing upgraded packages"
+- install.upgrade:
+    mon.a:
+    mon.b:
diff --git a/qa/suites/rgw/upgrade/3-upgrade-sequence/osds-then-rgws.yaml b/qa/suites/rgw/upgrade/3-upgrade-sequence/osds-then-rgws.yaml
new file mode 100644 (file)
index 0000000..22bfbc3
--- /dev/null
@@ -0,0 +1,27 @@
+tasks:
+- print: "ragweed prepare before upgrade"
+- ragweed:
+    client.0:
+      stages: prepare
+- print: "restarting upgraded osds"
+- ceph.restart:
+    daemons: [osd.0, osd.2]
+- ceph.restart:
+    daemons: [osd.1, osd.3]
+- ceph.restart:
+    daemons: [osd.4, osd.6]
+- ceph.restart:
+    daemons: [osd.5, osd.7]
+- print: "ragweed check/prepare after osd upgrade"
+- ragweed:
+    client.0:
+      stages: check
+    client.1:
+      stages: prepare
+- print: "restarting upgraded rgw"
+- ceph.restart:
+    daemons: [rgw.*]
+- print: "ragweed check after rgw upgrade"
+- ragweed:
+    client.1:
+      stages: check
diff --git a/qa/suites/rgw/upgrade/3-upgrade-sequence/rgws-then-osds.yaml b/qa/suites/rgw/upgrade/3-upgrade-sequence/rgws-then-osds.yaml
new file mode 100644 (file)
index 0000000..662750b
--- /dev/null
@@ -0,0 +1,27 @@
+tasks:
+- print: "ragweed prepare before upgrade"
+- ragweed:
+    client.0:
+      stages: prepare
+- print: "restarting upgraded rgws"
+- ceph.restart:
+    daemons: [rgw.*]
+- print: "ragweed check/prepare after rgw upgrade"
+- ragweed:
+    client.0:
+      stages: check
+    client.1:
+      stages: prepare
+- print: "restarting upgraded osds"
+- ceph.restart:
+    daemons: [osd.0, osd.2]
+- ceph.restart:
+    daemons: [osd.1, osd.3]
+- ceph.restart:
+    daemons: [osd.4, osd.6]
+- ceph.restart:
+    daemons: [osd.5, osd.7]
+- print: "ragweed check after osd upgrade"
+- ragweed:
+    client.1:
+      stages: check
diff --git a/qa/suites/rgw/upgrade/cluster.yaml b/qa/suites/rgw/upgrade/cluster.yaml
new file mode 120000 (symlink)
index 0000000..230ff0f
--- /dev/null
@@ -0,0 +1 @@
+.qa/clusters/fixed-2.yaml
\ No newline at end of file
diff --git a/qa/suites/rgw/upgrade/frontend b/qa/suites/rgw/upgrade/frontend
new file mode 120000 (symlink)
index 0000000..926a53e
--- /dev/null
@@ -0,0 +1 @@
+.qa/rgw_frontend
\ No newline at end of file
diff --git a/qa/suites/rgw/upgrade/objectstore b/qa/suites/rgw/upgrade/objectstore
new file mode 120000 (symlink)
index 0000000..f81d174
--- /dev/null
@@ -0,0 +1 @@
+.qa/objectstore_cephfs
\ No newline at end of file
diff --git a/qa/suites/rgw/upgrade/overrides.yaml b/qa/suites/rgw/upgrade/overrides.yaml
new file mode 100644 (file)
index 0000000..00592d4
--- /dev/null
@@ -0,0 +1,20 @@
+overrides:
+  ceph:
+    log-ignorelist:
+      - overall HEALTH_
+      - \(MON_DOWN\)
+      - \(MGR_DOWN\)
+      - \(OSD_DOWN\)
+      - \(PG_AVAILABILITY\)
+      - \(PG_DEGRADED\)
+      - slow request
+      - failed to encode map
+    wait-for-scrub: false
+    conf:
+      mon:
+        mon warn on osd down out interval zero: false
+      osd:
+        osd min pg log entries: 1
+        osd max pg log entries: 2
+  ragweed:
+    rgw_server: client.0
diff --git a/qa/suites/rgw/upgrade/supported-random-distro$ b/qa/suites/rgw/upgrade/supported-random-distro$
new file mode 120000 (symlink)
index 0000000..0862b44
--- /dev/null
@@ -0,0 +1 @@
+.qa/distros/supported-random-distro$
\ No newline at end of file