Add deployment test with Ceph

Change-Id: I0b74539af1051aa25f404365fa73bffebfc41572
This commit is contained in:
Vladimir Ushakov
2016-07-08 12:05:34 +03:00
committed by Simon Pasquier
parent 789e5573a5
commit 5d2ce44eaa

View File

@@ -370,3 +370,53 @@ class TestNodesToolchain(api.ToolchainApi):
self.check_plugins_online()
self.helpers.run_ostf()
@test(depends_on_groups=["prepare_slaves_9"],
groups=["deploy_toolchain_ha_ceph_backend", "deploy", "deploy_ha",
"toolchain", "smoke"])
@log_snapshot_after_test
def deploy_toolchain_ha_ceph_backend(self):
"""Deploy plugins in HA mode with Ceph backend
Scenario:
1. Create new environment with plugins and Ceph backend.
2. Add 3 controllers, 3 compute+ceph, 3 toolchain nodes
and deploy the environment.
3. Check that plugins work.
4. Run OSTF.
Duration 120m
"""
self.env.revert_snapshot("ready_with_9_slaves")
self.prepare_plugins()
data = {
'volumes_ceph': True,
'images_ceph': True,
'volumes_lvm': False,
}
self.helpers.create_cluster(name=self.__class__.__name__,
settings=data)
self.activate_plugins()
node_roles = {
'slave-01': ['controller'],
'slave-02': ['controller'],
'slave-03': ['controller'],
'slave-04': ['compute', 'ceph-osd'],
'slave-05': ['compute', 'ceph-osd'],
'slave-06': ['compute', 'ceph-osd'],
'slave-07': self.settings.stacklight_roles,
'slave-08': self.settings.stacklight_roles,
'slave-09': self.settings.stacklight_roles
}
self.helpers.deploy_cluster(node_roles)
self.check_plugins_online()
self.helpers.run_ostf()