]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/suites/orch/cephadm: Add smoke-small suite
authorZack Cerza <zack@redhat.com>
Fri, 5 Aug 2022 21:44:43 +0000 (15:44 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 10 Oct 2022 22:04:46 +0000 (16:04 -0600)
This was created to be used with ceph-devstack, but may be useful in
other contexts

Signed-off-by: Zack Cerza <zack@redhat.com>
qa/suites/orch/cephadm/smoke-small/% [new file with mode: 0644]
qa/suites/orch/cephadm/smoke-small/.qa [new symlink]
qa/suites/orch/cephadm/smoke-small/0-distro/centos_8.stream_container_tools_crun.yaml [new symlink]
qa/suites/orch/cephadm/smoke-small/0-nvme-loop.yaml [new symlink]
qa/suites/orch/cephadm/smoke-small/agent/.qa [new symlink]
qa/suites/orch/cephadm/smoke-small/agent/off.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/smoke-small/agent/on.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/smoke-small/fixed-2.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/smoke-small/mon_election [new symlink]
qa/suites/orch/cephadm/smoke-small/start.yaml [new file with mode: 0644]

diff --git a/qa/suites/orch/cephadm/smoke-small/% b/qa/suites/orch/cephadm/smoke-small/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/orch/cephadm/smoke-small/.qa b/qa/suites/orch/cephadm/smoke-small/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/smoke-small/0-distro/centos_8.stream_container_tools_crun.yaml b/qa/suites/orch/cephadm/smoke-small/0-distro/centos_8.stream_container_tools_crun.yaml
new file mode 120000 (symlink)
index 0000000..83fe020
--- /dev/null
@@ -0,0 +1 @@
+../.qa/distros/container-hosts/centos_8.stream_container_tools_crun.yaml
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/smoke-small/0-nvme-loop.yaml b/qa/suites/orch/cephadm/smoke-small/0-nvme-loop.yaml
new file mode 120000 (symlink)
index 0000000..5206b6e
--- /dev/null
@@ -0,0 +1 @@
+.qa/overrides/nvme_loop.yaml
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/smoke-small/agent/.qa b/qa/suites/orch/cephadm/smoke-small/agent/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/smoke-small/agent/off.yaml b/qa/suites/orch/cephadm/smoke-small/agent/off.yaml
new file mode 100644 (file)
index 0000000..f37c651
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      mgr:
+        mgr/cephadm/use_agent: false
diff --git a/qa/suites/orch/cephadm/smoke-small/agent/on.yaml b/qa/suites/orch/cephadm/smoke-small/agent/on.yaml
new file mode 100644 (file)
index 0000000..90ac298
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      mgr:
+        mgr/cephadm/use_agent: true
diff --git a/qa/suites/orch/cephadm/smoke-small/fixed-2.yaml b/qa/suites/orch/cephadm/smoke-small/fixed-2.yaml
new file mode 100644 (file)
index 0000000..61090a1
--- /dev/null
@@ -0,0 +1,29 @@
+roles:
+- - mon.a
+  - mgr.y
+  - osd.0
+  - client.0
+  - ceph.rgw.foo.a
+  - node-exporter.a
+  - alertmanager.a
+- - mon.b
+  - mgr.x
+  - osd.1
+  - client.1
+  - prometheus.a
+  - grafana.a
+  - node-exporter.b
+- - mon.c
+  - mgr.z
+  - osd.2
+  - client.2
+  - node-exporter.c
+openstack:
+- volumes: # attached to each instance
+    count: 1
+    size: 10 # GB
+overrides:
+  ceph:
+    conf:
+      osd:
+        osd shutdown pgref assert: true
diff --git a/qa/suites/orch/cephadm/smoke-small/mon_election b/qa/suites/orch/cephadm/smoke-small/mon_election
new file mode 120000 (symlink)
index 0000000..3f331e6
--- /dev/null
@@ -0,0 +1 @@
+.qa/mon_election
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/smoke-small/start.yaml b/qa/suites/orch/cephadm/smoke-small/start.yaml
new file mode 100644 (file)
index 0000000..77f493c
--- /dev/null
@@ -0,0 +1,16 @@
+tasks:
+- cephadm:
+    conf:
+      mgr:
+        debug ms: 1
+        debug mgr: 20
+- cephadm.shell:
+    mon.a:
+      - stat -c '%u %g' /var/log/ceph | grep '167 167'
+      - ceph orch status
+      - ceph orch ps
+      - ceph orch ls
+      - ceph orch host ls
+      - ceph orch device ls
+      - ceph orch ls --format yaml
+      - ceph orch ls | grep '^osd '