]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add ceph-ansible suite
authorZack Cerza <zack@redhat.com>
Fri, 19 Feb 2016 16:19:35 +0000 (09:19 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 26 Feb 2016 20:45:46 +0000 (13:45 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
15 files changed:
suites/ceph-ansible/smoke/% [new file with mode: 0644]
suites/ceph-ansible/smoke/0-clusters/3-node.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/0-clusters/single_mon_osd.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/1-distros [new symlink]
suites/ceph-ansible/smoke/2-setup/ceph_ansible.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/3-common/% [new file with mode: 0644]
suites/ceph-ansible/smoke/3-common/os_tuning/vm_friendly.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/3-common/source/upstream_stable.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/4-osd/% [new file with mode: 0644]
suites/ceph-ansible/smoke/4-osd/devices/from_teuthology.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/4-osd/devices/osd_auto_discovery.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/4-osd/journal/collocated.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/5-tests/cls.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/5-tests/rbd_cli_tests.yaml [new file with mode: 0644]
suites/ceph-ansible/smoke/5-tests/rbd_import_export.yaml [new file with mode: 0644]

diff --git a/suites/ceph-ansible/smoke/% b/suites/ceph-ansible/smoke/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/suites/ceph-ansible/smoke/0-clusters/3-node.yaml b/suites/ceph-ansible/smoke/0-clusters/3-node.yaml
new file mode 100644 (file)
index 0000000..2289a1e
--- /dev/null
@@ -0,0 +1,6 @@
+meta:
+- desc: "3-node cluster"
+roles:
+- [mon.a, mds.a, osd.0, osd.1, client.0]
+- [mon.b, mds.b, osd.2, osd.3]
+- [mon.c, mds.c, osd.4, osd.5]
diff --git a/suites/ceph-ansible/smoke/0-clusters/single_mon_osd.yaml b/suites/ceph-ansible/smoke/0-clusters/single_mon_osd.yaml
new file mode 100644 (file)
index 0000000..3e91d21
--- /dev/null
@@ -0,0 +1,4 @@
+meta:
+- desc: "1-node cluster"
+roles:
+  - [mon.0, osd.0, client.0]
diff --git a/suites/ceph-ansible/smoke/1-distros b/suites/ceph-ansible/smoke/1-distros
new file mode 120000 (symlink)
index 0000000..c5d5935
--- /dev/null
@@ -0,0 +1 @@
+../../../distros/supported
\ No newline at end of file
diff --git a/suites/ceph-ansible/smoke/2-setup/ceph_ansible.yaml b/suites/ceph-ansible/smoke/2-setup/ceph_ansible.yaml
new file mode 100644 (file)
index 0000000..0050b28
--- /dev/null
@@ -0,0 +1,5 @@
+meta:
+- desc: "Build the cluster using ceph-ansible"
+tasks:
+- ceph_ansible:
+- install.ship_utilities:
diff --git a/suites/ceph-ansible/smoke/3-common/% b/suites/ceph-ansible/smoke/3-common/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/suites/ceph-ansible/smoke/3-common/os_tuning/vm_friendly.yaml b/suites/ceph-ansible/smoke/3-common/os_tuning/vm_friendly.yaml
new file mode 100644 (file)
index 0000000..a5ea8d8
--- /dev/null
@@ -0,0 +1,6 @@
+meta:
+- desc: "Set os_tuning_params to values that are safe for VMs"
+overrides:
+  ceph_ansible:
+    vars:
+      os_tuning_params: '[{"name": "kernel.pid_max", "value": 4194303},{"name": "fs.file-max", "value": 26234859}]'
diff --git a/suites/ceph-ansible/smoke/3-common/source/upstream_stable.yaml b/suites/ceph-ansible/smoke/3-common/source/upstream_stable.yaml
new file mode 100644 (file)
index 0000000..352ca4d
--- /dev/null
@@ -0,0 +1,7 @@
+meta:
+- desc: "Use a stable upstream Ceph release"
+overrides:
+  ceph_ansible:
+    vars:
+      ceph_origin: upstream
+      ceph_stable: true
diff --git a/suites/ceph-ansible/smoke/4-osd/% b/suites/ceph-ansible/smoke/4-osd/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/suites/ceph-ansible/smoke/4-osd/devices/from_teuthology.yaml b/suites/ceph-ansible/smoke/4-osd/devices/from_teuthology.yaml
new file mode 100644 (file)
index 0000000..6b82484
--- /dev/null
@@ -0,0 +1,6 @@
+meta:
+- desc: "Have teuthology tell ceph-ansible which OSD devices to use"
+overrides:
+  ceph_ansible:
+    vars:
+      osd_auto_discovery: false
diff --git a/suites/ceph-ansible/smoke/4-osd/devices/osd_auto_discovery.yaml b/suites/ceph-ansible/smoke/4-osd/devices/osd_auto_discovery.yaml
new file mode 100644 (file)
index 0000000..04f697a
--- /dev/null
@@ -0,0 +1,6 @@
+meta:
+- desc: "Tell ceph-ansible to discover OSD devices automatically"
+overrides:
+  ceph_ansible:
+    vars:
+      osd_auto_discovery: true
diff --git a/suites/ceph-ansible/smoke/4-osd/journal/collocated.yaml b/suites/ceph-ansible/smoke/4-osd/journal/collocated.yaml
new file mode 100644 (file)
index 0000000..2a60eaf
--- /dev/null
@@ -0,0 +1,7 @@
+meta:
+- desc: "Use a collocated journal"
+overrides:
+  ceph_ansible:
+    vars:
+      journal_collocation: true
+      journal_size: 1024
diff --git a/suites/ceph-ansible/smoke/5-tests/cls.yaml b/suites/ceph-ansible/smoke/5-tests/cls.yaml
new file mode 100644 (file)
index 0000000..781a4d4
--- /dev/null
@@ -0,0 +1,7 @@
+meta:
+- desc: "Run the rados cls tests"
+tasks:
+- workunit:
+    clients:
+      client.0:
+        - cls
diff --git a/suites/ceph-ansible/smoke/5-tests/rbd_cli_tests.yaml b/suites/ceph-ansible/smoke/5-tests/rbd_cli_tests.yaml
new file mode 100644 (file)
index 0000000..1a4fa0d
--- /dev/null
@@ -0,0 +1,8 @@
+meta:
+- desc: "Run the rbd cli tests"
+tasks:
+- workunit:
+    clients:
+      client.0:
+        - rbd/run_cli_tests.sh
+
diff --git a/suites/ceph-ansible/smoke/5-tests/rbd_import_export.yaml b/suites/ceph-ansible/smoke/5-tests/rbd_import_export.yaml
new file mode 100644 (file)
index 0000000..9495934
--- /dev/null
@@ -0,0 +1,7 @@
+meta:
+- desc: "Run the rbd import/export tests"
+tasks:
+- workunit:
+    clients:
+      client.0:
+        - rbd/import_export.sh