]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: adds a 1mon 1osd centos7 test scenario
authorAndrew Schoen <aschoen@redhat.com>
Tue, 8 Nov 2016 16:32:39 +0000 (10:32 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 8 Nov 2016 18:37:04 +0000 (12:37 -0600)
This uses journal collocation for the osd.

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

tests/functional/centos/7/mon-osd/Vagrantfile [new symlink]
tests/functional/centos/7/mon-osd/group_vars/all [new file with mode: 0644]
tests/functional/centos/7/mon-osd/group_vars/osds [new file with mode: 0644]
tests/functional/centos/7/mon-osd/hosts [new file with mode: 0644]
tests/functional/centos/7/mon-osd/scenario.py [new file with mode: 0644]

diff --git a/tests/functional/centos/7/mon-osd/Vagrantfile b/tests/functional/centos/7/mon-osd/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/centos/7/mon-osd/group_vars/all b/tests/functional/centos/7/mon-osd/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/centos/7/mon-osd/group_vars/osds b/tests/functional/centos/7/mon-osd/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/centos/7/mon-osd/hosts b/tests/functional/centos/7/mon-osd/hosts
new file mode 100644 (file)
index 0000000..6198692
--- /dev/null
@@ -0,0 +1,6 @@
+[mons]
+# centos7 uses the enp0s8 interface
+mon0 monitor_interface=enp0s8
+
+[osds]
+osd0
diff --git a/tests/functional/centos/7/mon-osd/scenario.py b/tests/functional/centos/7/mon-osd/scenario.py
new file mode 100644 (file)
index 0000000..44d5300
--- /dev/null
@@ -0,0 +1,19 @@
+# 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': ['mon', 'mon_initial_members']
+    },
+    'osd0': {
+        'username': 'vagrant',
+        'components': [],
+    },
+}