added test cinder_ceph
Change-Id: Ie3f0566838d896b674e7e7eb052d36a61132bf58
This commit is contained in:
parent
96ed1467bc
commit
91d002c700
|
@ -309,3 +309,64 @@ class TestManilaIntegration(TestBasic):
|
|||
self.show_step(6)
|
||||
TestPluginCheck(self).verify_manila_functionality()
|
||||
|
||||
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
|
||||
groups=["manila_cinder_ceph"])
|
||||
@log_snapshot_after_test
|
||||
def manila_cinder_ceph(self):
|
||||
"""Deploy a cluster using both Ceph and Cinder backends.
|
||||
|
||||
Scenario:
|
||||
1. Upload plugins and install.
|
||||
2. Create environment :
|
||||
* Networking: Neutron with tunneling segmentation
|
||||
* Block Storage: LVM
|
||||
* Image Storage: Ceph
|
||||
* Additional services: disabled
|
||||
3. Enable plugin and add nodes with following roles:
|
||||
* Controller + Cinder + Ceph-OSD
|
||||
* Controller + Cinder + Manila-data
|
||||
* Controller + Ceph-OSD
|
||||
* Compute + Cinder
|
||||
* Ceph-OSD + Cinder + Compute + Manila-share
|
||||
4. Deploy cluster with plugin.
|
||||
5. Run OSTF
|
||||
6. Verify Manila service basic functionality (share create/mount).
|
||||
"""
|
||||
|
||||
self.env.revert_snapshot("ready_with_5_slaves")
|
||||
self.show_step(1)
|
||||
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
|
||||
plugin.upload_manila_image(self.ssh_manager.admin_ip)
|
||||
|
||||
self.show_step(2)
|
||||
cluster_id = self.fuel_web.create_cluster(
|
||||
name=self.__class__.__name__,
|
||||
settings={
|
||||
'net_provider': 'neutron',
|
||||
'net_segment_type': 'tun',
|
||||
'images_ceph': True
|
||||
}
|
||||
)
|
||||
|
||||
self.show_step(3)
|
||||
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
|
||||
self.fuel_web.update_nodes(
|
||||
cluster_id,
|
||||
{
|
||||
'slave-01': ['controller', 'cinder', 'ceph-osd'],
|
||||
'slave-02': ['controller', 'cinder', 'manila-data'],
|
||||
'slave-03': ['controller', 'ceph-osd'],
|
||||
'slave-04': ['compute', 'cinder'],
|
||||
'slave-05': ['ceph-osd', 'cinder', 'compute', 'manila-share'],
|
||||
}
|
||||
)
|
||||
|
||||
self.show_step(4)
|
||||
self.fuel_web.deploy_cluster_wait(cluster_id)
|
||||
|
||||
self.show_step(5)
|
||||
self.fuel_web.run_ostf(cluster_id=cluster_id,
|
||||
test_sets=['smoke', 'sanity', 'ha'])
|
||||
|
||||
self.show_step(6)
|
||||
TestPluginCheck(self).verify_manila_functionality()
|
||||
|
|
Loading…
Reference in New Issue