]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/rados/cephadm/smoke-singlehost: test --single-host-defaults
authorSage Weil <sage@newdream.net>
Tue, 13 Apr 2021 16:09:26 +0000 (12:09 -0400)
committerSage Weil <sage@newdream.net>
Tue, 4 May 2021 16:16:02 +0000 (11:16 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit c20323d114e6c8072ecdf26f77a58ae734d38d0e)

qa/suites/rados/cephadm/smoke-singlehost/% [new file with mode: 0644]
qa/suites/rados/cephadm/smoke-singlehost/0-distro$ [new symlink]
qa/suites/rados/cephadm/smoke-singlehost/1-start.yaml [new file with mode: 0644]
qa/suites/rados/cephadm/smoke-singlehost/2-services/basic.yaml [new file with mode: 0644]
qa/suites/rados/cephadm/smoke-singlehost/2-services/rgw.yaml [new file with mode: 0644]
qa/suites/rados/cephadm/smoke-singlehost/3-final.yaml [new file with mode: 0644]
qa/tasks/cephadm.py

diff --git a/qa/suites/rados/cephadm/smoke-singlehost/% b/qa/suites/rados/cephadm/smoke-singlehost/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rados/cephadm/smoke-singlehost/0-distro$ b/qa/suites/rados/cephadm/smoke-singlehost/0-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/smoke-singlehost/1-start.yaml b/qa/suites/rados/cephadm/smoke-singlehost/1-start.yaml
new file mode 100644 (file)
index 0000000..ca6019c
--- /dev/null
@@ -0,0 +1,27 @@
+tasks:
+- cephadm:
+    roleless: true
+    single_host_defaults: true
+- cephadm.shell:
+    host.a:
+      - ceph orch status
+      - ceph orch ps
+      - ceph orch ls
+      - ceph orch host ls
+      - ceph orch device ls
+roles:
+- - host.a
+  - osd.0
+  - osd.1
+  - osd.2
+  - osd.3
+  - client.0
+openstack:
+- volumes: # attached to each instance
+    count: 4
+    size: 10 # GB
+overrides:
+  ceph:
+    conf:
+      osd:
+        osd shutdown pgref assert: true
diff --git a/qa/suites/rados/cephadm/smoke-singlehost/2-services/basic.yaml b/qa/suites/rados/cephadm/smoke-singlehost/2-services/basic.yaml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rados/cephadm/smoke-singlehost/2-services/rgw.yaml b/qa/suites/rados/cephadm/smoke-singlehost/2-services/rgw.yaml
new file mode 100644 (file)
index 0000000..161b15c
--- /dev/null
@@ -0,0 +1,12 @@
+tasks:
+- cephadm.apply:
+    specs:
+      - service_type: rgw
+        service_id: foo
+        placement:
+          count_per_host: 4
+          host_pattern: "*"
+        spec:
+          rgw_frontend_port: 8000
+- sleep:
+    interval: 60
diff --git a/qa/suites/rados/cephadm/smoke-singlehost/3-final.yaml b/qa/suites/rados/cephadm/smoke-singlehost/3-final.yaml
new file mode 100644 (file)
index 0000000..02f5b28
--- /dev/null
@@ -0,0 +1,8 @@
+tasks:
+- cephadm.shell:
+    host.a:
+      - ceph orch status
+      - ceph orch ps
+      - ceph orch ls
+      - ceph orch host ls
+      - ceph orch device ls
index c1b6970c86741263ed04ae551177033b1807a767..f7113a6cad83863fd1993ed6b837018b57de559d 100644 (file)
@@ -393,6 +393,8 @@ def ceph_bootstrap(ctx, config):
             cmd += ['--skip-dashboard']
         if config.get('skip_monitoring_stack'):
             cmd += ['--skip-monitoring-stack']
+        if config.get('single_host_defaults'):
+            cmd += ['--single-host-defaults']
         # bootstrap makes the keyring root 0600, so +r it for our purposes
         cmd += [
             run.Raw('&&'),