From: Sage Weil Date: Tue, 13 Apr 2021 16:09:26 +0000 (-0400) Subject: qa/suites/rados/cephadm/smoke-singlehost: test --single-host-defaults X-Git-Tag: v16.2.5~39^2~4^2^2~44 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f54f89404599d75234f8b3f4a772d080bbbf202;p=ceph.git qa/suites/rados/cephadm/smoke-singlehost: test --single-host-defaults Signed-off-by: Sage Weil (cherry picked from commit c20323d114e6c8072ecdf26f77a58ae734d38d0e) --- diff --git a/qa/suites/rados/cephadm/smoke-singlehost/% b/qa/suites/rados/cephadm/smoke-singlehost/% new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/qa/suites/rados/cephadm/smoke-singlehost/0-distro$ b/qa/suites/rados/cephadm/smoke-singlehost/0-distro$ new file mode 120000 index 000000000000..d2dffb181881 --- /dev/null +++ b/qa/suites/rados/cephadm/smoke-singlehost/0-distro$ @@ -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 index 000000000000..ca6019c66cfe --- /dev/null +++ b/qa/suites/rados/cephadm/smoke-singlehost/1-start.yaml @@ -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 index 000000000000..e69de29bb2d1 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 index 000000000000..161b15c770cf --- /dev/null +++ b/qa/suites/rados/cephadm/smoke-singlehost/2-services/rgw.yaml @@ -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 index 000000000000..02f5b289c1ad --- /dev/null +++ b/qa/suites/rados/cephadm/smoke-singlehost/3-final.yaml @@ -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 diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index c1b6970c8674..f7113a6cad83 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -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('&&'),