From cfd6a6f04e20cba4012bc48b60e5d6efb07e70f0 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 27 Aug 2015 23:29:30 +0200 Subject: [PATCH] implement the ceph-disk suite Run the ceph-disk workunit with a mon setup with ceph-deploy. It is prefered to the install done by the ceph tasks because it relies on the init system and udev rules which are going to be tested by the ceph-disk workunit. http://tracker.ceph.com/issues/11881 Refs: #11881 Signed-off-by: Loic Dachary --- suites/ceph-disk/basic/% | 0 suites/ceph-disk/basic/distros | 1 + suites/ceph-disk/basic/options/ceph-conf.yaml | 11 +++++ suites/ceph-disk/basic/tasks/ceph-disk.yaml | 40 +++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 suites/ceph-disk/basic/% create mode 120000 suites/ceph-disk/basic/distros create mode 100644 suites/ceph-disk/basic/options/ceph-conf.yaml create mode 100644 suites/ceph-disk/basic/tasks/ceph-disk.yaml diff --git a/suites/ceph-disk/basic/% b/suites/ceph-disk/basic/% new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/suites/ceph-disk/basic/distros b/suites/ceph-disk/basic/distros new file mode 120000 index 0000000000000..c5d59352cb5ea --- /dev/null +++ b/suites/ceph-disk/basic/distros @@ -0,0 +1 @@ +../../../distros/supported \ No newline at end of file diff --git a/suites/ceph-disk/basic/options/ceph-conf.yaml b/suites/ceph-disk/basic/options/ceph-conf.yaml new file mode 100644 index 0000000000000..ac93c7f7e431f --- /dev/null +++ b/suites/ceph-disk/basic/options/ceph-conf.yaml @@ -0,0 +1,11 @@ +overrides: + ceph-deploy: + separate_journal_disk: + only_mon: true + conf: + global: + mon pg warn min per osd: 2 + osd pool default size: 2 + osd crush chooseleaf type: 0 # failure domain == osd + osd pg bits: 2 + osd pgp bits: 2 diff --git a/suites/ceph-disk/basic/tasks/ceph-disk.yaml b/suites/ceph-disk/basic/tasks/ceph-disk.yaml new file mode 100644 index 0000000000000..c767780cdf2f3 --- /dev/null +++ b/suites/ceph-disk/basic/tasks/ceph-disk.yaml @@ -0,0 +1,40 @@ +overrides: + ceph-deploy: + conf: + global: + debug ms: 1 + osd: + debug osd: 10 + mon: + debug mon: 10 +roles: +- - mon.a + - client.0 +openstack: + machine: + disk: 10 # GB + ram: 2000 # MB + cpus: 1 + volumes: # attached to each instance + count: 3 + size: 1 # GB +tasks: +- install: + extras: yes +- print: "**** done install extras" +- ssh_keys: +- print: "**** done ssh_keys" +- ceph-deploy: +- print: "**** done ceph-deploy" +# +# Keep this around for debugging purposes. If uncommented the target +# will pause and the workunit can be run and debug manually. +# +# - exec: +# client.0: +# - sleep 1000000000 # forever +# +- workunit: + clients: + all: + - ceph-disk/ceph-disk.sh -- 2.39.5