]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Added a smoke suite for ceph-ansible
authorTamil Muthamizhan <tmuthami@redhat.com>
Thu, 22 Dec 2016 00:03:31 +0000 (16:03 -0800)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 18 Jan 2017 17:41:36 +0000 (17:41 +0000)
Smoke suite with basic tests for ceph ansible deployment

Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
(cherry picked from commit ad9b75f8d0ccca1aa2dfc8679196643433634687)

27 files changed:
qa/suites/ceph-ansible/smoke/% [deleted file]
qa/suites/ceph-ansible/smoke/0-clusters/3-node.yaml [deleted file]
qa/suites/ceph-ansible/smoke/0-clusters/single_mon_osd.yaml [deleted file]
qa/suites/ceph-ansible/smoke/1-distros [deleted symlink]
qa/suites/ceph-ansible/smoke/2-setup/ceph_ansible.yaml [deleted file]
qa/suites/ceph-ansible/smoke/3-common/% [deleted file]
qa/suites/ceph-ansible/smoke/3-common/os_tuning/vm_friendly.yaml [deleted file]
qa/suites/ceph-ansible/smoke/3-common/source/upstream_stable.yaml [deleted file]
qa/suites/ceph-ansible/smoke/4-osd/% [deleted file]
qa/suites/ceph-ansible/smoke/4-osd/devices/from_teuthology.yaml [deleted file]
qa/suites/ceph-ansible/smoke/4-osd/devices/osd_auto_discovery.yaml [deleted file]
qa/suites/ceph-ansible/smoke/4-osd/journal/collocated.yaml [deleted file]
qa/suites/ceph-ansible/smoke/5-tests/ceph-admin-commands.yaml [deleted file]
qa/suites/ceph-ansible/smoke/5-tests/cls.yaml [deleted file]
qa/suites/ceph-ansible/smoke/5-tests/rbd_cli_tests.yaml.disabled [deleted file]
qa/suites/ceph-ansible/smoke/5-tests/rbd_import_export.yaml [deleted file]
qa/suites/ceph-ansible/smoke/basic/% [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/0-clusters/3-node.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/1-distros/centos_7.2.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/1-distros/ubuntu_14.04.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/1-distros/ubuntu_16.04.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/2-config/ceph_ansible.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/3-tasks/ceph-admin-commands.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/3-tasks/cfuse_workunit_suites_blogbench.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/3-tasks/cls.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/3-tasks/rbd_cli_tests.yaml [new file with mode: 0644]
qa/suites/ceph-ansible/smoke/basic/3-tasks/rbd_import_export.yaml [new file with mode: 0644]

diff --git a/qa/suites/ceph-ansible/smoke/% b/qa/suites/ceph-ansible/smoke/%
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/qa/suites/ceph-ansible/smoke/0-clusters/3-node.yaml b/qa/suites/ceph-ansible/smoke/0-clusters/3-node.yaml
deleted file mode 100644 (file)
index 2289a1e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-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/qa/suites/ceph-ansible/smoke/0-clusters/single_mon_osd.yaml b/qa/suites/ceph-ansible/smoke/0-clusters/single_mon_osd.yaml
deleted file mode 100644 (file)
index 6905fab..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-meta:
-- desc: "1-node cluster"
-roles:
-  - [mon.a, osd.0, client.0]
diff --git a/qa/suites/ceph-ansible/smoke/1-distros b/qa/suites/ceph-ansible/smoke/1-distros
deleted file mode 120000 (symlink)
index c5d5935..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../distros/supported
\ No newline at end of file
diff --git a/qa/suites/ceph-ansible/smoke/2-setup/ceph_ansible.yaml b/qa/suites/ceph-ansible/smoke/2-setup/ceph_ansible.yaml
deleted file mode 100644 (file)
index 693717f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-meta:
-- desc: "Build the cluster using ceph-ansible; then check health and make the keyring readable"
-tasks:
-- ceph_ansible:
-- exec:
-    mon.a:
-      - "sudo ceph health"
-- exec:
-    all:
-      - "KEYRING=/etc/ceph/ceph.client.admin.keyring; test -f $KEYRING && sudo chmod o+r $KEYRING"
-- install.ship_utilities:
-overrides:
-  ceph_ansible:
-    vars:
-      ceph_test: true
-openstack:
-  - volumes:
-      count: 3
-      size: 20  # GB
diff --git a/qa/suites/ceph-ansible/smoke/3-common/% b/qa/suites/ceph-ansible/smoke/3-common/%
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/qa/suites/ceph-ansible/smoke/3-common/os_tuning/vm_friendly.yaml b/qa/suites/ceph-ansible/smoke/3-common/os_tuning/vm_friendly.yaml
deleted file mode 100644 (file)
index a5ea8d8..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-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/qa/suites/ceph-ansible/smoke/3-common/source/upstream_stable.yaml b/qa/suites/ceph-ansible/smoke/3-common/source/upstream_stable.yaml
deleted file mode 100644 (file)
index 352ca4d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-meta:
-- desc: "Use a stable upstream Ceph release"
-overrides:
-  ceph_ansible:
-    vars:
-      ceph_origin: upstream
-      ceph_stable: true
diff --git a/qa/suites/ceph-ansible/smoke/4-osd/% b/qa/suites/ceph-ansible/smoke/4-osd/%
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/qa/suites/ceph-ansible/smoke/4-osd/devices/from_teuthology.yaml b/qa/suites/ceph-ansible/smoke/4-osd/devices/from_teuthology.yaml
deleted file mode 100644 (file)
index 6b82484..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-meta:
-- desc: "Have teuthology tell ceph-ansible which OSD devices to use"
-overrides:
-  ceph_ansible:
-    vars:
-      osd_auto_discovery: false
diff --git a/qa/suites/ceph-ansible/smoke/4-osd/devices/osd_auto_discovery.yaml b/qa/suites/ceph-ansible/smoke/4-osd/devices/osd_auto_discovery.yaml
deleted file mode 100644 (file)
index 04f697a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-meta:
-- desc: "Tell ceph-ansible to discover OSD devices automatically"
-overrides:
-  ceph_ansible:
-    vars:
-      osd_auto_discovery: true
diff --git a/qa/suites/ceph-ansible/smoke/4-osd/journal/collocated.yaml b/qa/suites/ceph-ansible/smoke/4-osd/journal/collocated.yaml
deleted file mode 100644 (file)
index 2a60eaf..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-meta:
-- desc: "Use a collocated journal"
-overrides:
-  ceph_ansible:
-    vars:
-      journal_collocation: true
-      journal_size: 1024
diff --git a/qa/suites/ceph-ansible/smoke/5-tests/ceph-admin-commands.yaml b/qa/suites/ceph-ansible/smoke/5-tests/ceph-admin-commands.yaml
deleted file mode 100644 (file)
index 33642d5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-meta:
-- desc: "Run ceph-admin-commands.sh"
-tasks:
-- workunit:
-    clients:
-      client.0:
-        - ceph-tests/ceph-admin-commands.sh
diff --git a/qa/suites/ceph-ansible/smoke/5-tests/cls.yaml b/qa/suites/ceph-ansible/smoke/5-tests/cls.yaml
deleted file mode 100644 (file)
index 781a4d4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-meta:
-- desc: "Run the rados cls tests"
-tasks:
-- workunit:
-    clients:
-      client.0:
-        - cls
diff --git a/qa/suites/ceph-ansible/smoke/5-tests/rbd_cli_tests.yaml.disabled b/qa/suites/ceph-ansible/smoke/5-tests/rbd_cli_tests.yaml.disabled
deleted file mode 100644 (file)
index 1a4fa0d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-meta:
-- desc: "Run the rbd cli tests"
-tasks:
-- workunit:
-    clients:
-      client.0:
-        - rbd/run_cli_tests.sh
-
diff --git a/qa/suites/ceph-ansible/smoke/5-tests/rbd_import_export.yaml b/qa/suites/ceph-ansible/smoke/5-tests/rbd_import_export.yaml
deleted file mode 100644 (file)
index 9495934..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-meta:
-- desc: "Run the rbd import/export tests"
-tasks:
-- workunit:
-    clients:
-      client.0:
-        - rbd/import_export.sh
diff --git a/qa/suites/ceph-ansible/smoke/basic/% b/qa/suites/ceph-ansible/smoke/basic/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/ceph-ansible/smoke/basic/0-clusters/3-node.yaml b/qa/suites/ceph-ansible/smoke/basic/0-clusters/3-node.yaml
new file mode 100644 (file)
index 0000000..84f45b2
--- /dev/null
@@ -0,0 +1,6 @@
+meta:
+- desc: "3-node cluster"
+roles:
+- [mon.a, mds.a, osd.0, osd.1, osd.2]
+- [mon.b, osd.3, osd.4, osd.5]
+- [mon.c, osd.6, osd.7, osd.8, client.0]
diff --git a/qa/suites/ceph-ansible/smoke/basic/1-distros/centos_7.2.yaml b/qa/suites/ceph-ansible/smoke/basic/1-distros/centos_7.2.yaml
new file mode 100644 (file)
index 0000000..44d2f0e
--- /dev/null
@@ -0,0 +1,2 @@
+os_type: centos
+os_version: "7.2"
diff --git a/qa/suites/ceph-ansible/smoke/basic/1-distros/ubuntu_14.04.yaml b/qa/suites/ceph-ansible/smoke/basic/1-distros/ubuntu_14.04.yaml
new file mode 100644 (file)
index 0000000..309e989
--- /dev/null
@@ -0,0 +1,2 @@
+os_type: ubuntu
+os_version: "14.04"
diff --git a/qa/suites/ceph-ansible/smoke/basic/1-distros/ubuntu_16.04.yaml b/qa/suites/ceph-ansible/smoke/basic/1-distros/ubuntu_16.04.yaml
new file mode 100644 (file)
index 0000000..a459fdd
--- /dev/null
@@ -0,0 +1,2 @@
+os_type: ubuntu
+os_version: "16.04"
diff --git a/qa/suites/ceph-ansible/smoke/basic/2-config/ceph_ansible.yaml b/qa/suites/ceph-ansible/smoke/basic/2-config/ceph_ansible.yaml
new file mode 100644 (file)
index 0000000..d5e814a
--- /dev/null
@@ -0,0 +1,23 @@
+meta:
+- desc: "Build the ceph cluster using ceph-ansible"
+
+overrides:                                                                                                                                                                                                  
+   ceph_ansible:                                                                                                                                                                                            
+     vars:                                                                                                                                                                                                  
+        ceph_conf_overrides:                                                                                                                                                                                
+          global:                                                                                                                                                                                           
+            osd default pool size: 2                                                                                                                                                                        
+            mon pg warn min per osd: 2                                                                                                                                                                      
+        ceph_dev: true                                                                                                                                                                                      
+        ceph_dev_branch: jewel                                                                                                                                                                              
+        ceph_dev_key: https://download.ceph.com/keys/autobuild.asc                                                                                                                                          
+        ceph_origin: upstream                                                                                                                                                                               
+        ceph_test: true                                                                                                                                                                                     
+        journal_collocation: true                                                                                                                                                                           
+        journal_size: 1024                                                                                                                                                                                  
+        osd_auto_discovery: false           
+
+tasks:
+- ssh-keys:
+- ceph_ansible:
+- install.ship_utilities:
diff --git a/qa/suites/ceph-ansible/smoke/basic/3-tasks/ceph-admin-commands.yaml b/qa/suites/ceph-ansible/smoke/basic/3-tasks/ceph-admin-commands.yaml
new file mode 100644 (file)
index 0000000..33642d5
--- /dev/null
@@ -0,0 +1,7 @@
+meta:
+- desc: "Run ceph-admin-commands.sh"
+tasks:
+- workunit:
+    clients:
+      client.0:
+        - ceph-tests/ceph-admin-commands.sh
diff --git a/qa/suites/ceph-ansible/smoke/basic/3-tasks/cfuse_workunit_suites_blogbench.yaml b/qa/suites/ceph-ansible/smoke/basic/3-tasks/cfuse_workunit_suites_blogbench.yaml
new file mode 100644 (file)
index 0000000..ef3456d
--- /dev/null
@@ -0,0 +1,8 @@
+meta:
+- desc: "Run the cephfs blogbench tests"
+tasks:
+- ceph-fuse:
+- workunit:
+    clients:
+      all:
+        - suites/blogbench.sh
diff --git a/qa/suites/ceph-ansible/smoke/basic/3-tasks/cls.yaml b/qa/suites/ceph-ansible/smoke/basic/3-tasks/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/qa/suites/ceph-ansible/smoke/basic/3-tasks/rbd_cli_tests.yaml b/qa/suites/ceph-ansible/smoke/basic/3-tasks/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/qa/suites/ceph-ansible/smoke/basic/3-tasks/rbd_import_export.yaml b/qa/suites/ceph-ansible/smoke/basic/3-tasks/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