]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: adds a xenial 3 mon test scenario
authorAndrew Schoen <aschoen@redhat.com>
Tue, 8 Nov 2016 16:16:46 +0000 (10:16 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 8 Nov 2016 16:35:43 +0000 (10:35 -0600)
This can be used to test if mon hosts and
mon initial members are being set properly with
multiple hosts.

Also, to verify that monitor_address and monitor_interface
options both work as described.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates

tests/functional/ubuntu/16.04/mon/Vagrantfile [new symlink]
tests/functional/ubuntu/16.04/mon/group_vars/all [new file with mode: 0644]
tests/functional/ubuntu/16.04/mon/group_vars/osds [new file with mode: 0644]
tests/functional/ubuntu/16.04/mon/hosts [new file with mode: 0644]
tests/functional/ubuntu/16.04/mon/scenario.py [new file with mode: 0644]

diff --git a/tests/functional/ubuntu/16.04/mon/Vagrantfile b/tests/functional/ubuntu/16.04/mon/Vagrantfile
new file mode 120000 (symlink)
index 0000000..dfd7436
--- /dev/null
@@ -0,0 +1 @@
+../../../../../Vagrantfile
\ No newline at end of file
diff --git a/tests/functional/ubuntu/16.04/mon/group_vars/all b/tests/functional/ubuntu/16.04/mon/group_vars/all
new file mode 100644 (file)
index 0000000..4e410c3
--- /dev/null
@@ -0,0 +1,13 @@
+---
+
+ceph_stable: True
+public_network: "192.168.42.0/24"
+cluster_network: "192.168.43.0/24"
+journal_size: 100
+devices:
+  - '/dev/sdb'
+  - '/dev/sdc'
+journal_collocation: True
+os_tuning_params:
+  - { name: kernel.pid_max, value: 4194303 }
+  - { name: fs.file-max, value: 26234859 }
diff --git a/tests/functional/ubuntu/16.04/mon/group_vars/osds b/tests/functional/ubuntu/16.04/mon/group_vars/osds
new file mode 100644 (file)
index 0000000..ed9b23a
--- /dev/null
@@ -0,0 +1,4 @@
+---
+os_tuning_params:
+  - { name: kernel.pid_max, value: 4194303 }
+  - { name: fs.file-max, value: 26234859 }
diff --git a/tests/functional/ubuntu/16.04/mon/hosts b/tests/functional/ubuntu/16.04/mon/hosts
new file mode 100644 (file)
index 0000000..9dfcc8b
--- /dev/null
@@ -0,0 +1,4 @@
+[mons]
+mon0 monitor_address=192.168.42.10
+mon1 monitor_address=192.168.42.11
+mon2 monitor_interface=eth1
diff --git a/tests/functional/ubuntu/16.04/mon/scenario.py b/tests/functional/ubuntu/16.04/mon/scenario.py
new file mode 100644 (file)
index 0000000..2a084bd
--- /dev/null
@@ -0,0 +1,23 @@
+# Basic information about ceph and its configuration
+ceph = {
+    'releases': ['infernalis', 'jewel'],
+    'cluster_name': 'ceph'
+}
+
+# remote nodes to test, with anything specific to them that might be useful for
+# tests to get. Each one of these can get requested as a py.test fixture to
+# validate information.
+nodes = {
+    'mon0': {
+        'username': 'vagrant',
+        'components': ['conf_tests']
+    },
+    'mon1': {
+        'username': 'vagrant',
+        'components': ['conf_tests']
+    },
+    'mon2': {
+        'username': 'vagrant',
+        'components': ['conf_tests']
+    },
+}