From 852f22146472c845dd349b9a8622ab658e5c54a7 Mon Sep 17 00:00:00 2001 From: Volodymyr Rozhanskyy Date: Fri, 30 Sep 2016 16:53:59 +0300 Subject: [PATCH] test manila_del_add_compute Change-Id: I9ccf1321b6576cc8bb0a7b3d422bf5131438dcb0 --- plugin_test/tests/test_functional.py | 105 +++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/plugin_test/tests/test_functional.py b/plugin_test/tests/test_functional.py index e7ab495..c910109 100644 --- a/plugin_test/tests/test_functional.py +++ b/plugin_test/tests/test_functional.py @@ -357,4 +357,109 @@ class TestManilaFunctional(TestBasic): self.show_step(14) TestPluginCheck(self).verify_manila_functionality() + @test(depends_on=[SetupEnvironment.prepare_slaves_5], + groups=["manila_del_add_сompute"]) + @log_snapshot_after_test + def manila_del_add_comp(self): + """Check deploy after compute node remove and add. + + Scenario: + 1. Upload plugins and install. + 2. Create environment : + * Networking: Neutron with tunneling segmentation + * Block Storage: Ceph + * Other Storages: all Ceph + * Additional services: disabled + 3. Enable plugin and add nodes with following roles: + * Controller + Cinder + * Compute + Manila-data + Manila-share + * Compute + 4. Deploy cluster with plugin. + 5. Run OSTF + 6. Verify Manila service basic functionality (share create/mount). + 7. Delete node with compute role + 8. Deploy changes + 9. Run OSTF + 10. Verify Manila service basic functionality (share create/mount). + 11. Add a node with compute role + 12. Deploy changes + 13. Run OSTF + 14. Verify Manila service basic functionality (share create/mount). + + """ + + self.env.revert_snapshot("ready_with_3_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' + } + ) + + self.show_step(3) + plugin.enable_plugin_manila(cluster_id, self.fuel_web) + self.fuel_web.update_nodes( + cluster_id, + {'slave-01': ['controller', 'cinder'], + 'slave-02': ['compute', 'manila-data', 'manila-share'], + 'slave-03': ['compute'] + } + ) + + self.show_step(4) + self.fuel_web.deploy_cluster_wait( + cluster_id, + check_services=False + ) + + self.show_step(5) + self.fuel_web.run_ostf(cluster_id=cluster_id, + test_sets=['smoke', 'sanity']) + + self.show_step(6) + TestPluginCheck(self).verify_manila_functionality() + + self.show_step(7) + self.fuel_web.update_nodes( + cluster_id, {'slave-03': ['compute']}, + pending_addition=False, pending_deletion=True) + + self.show_step(8) + self.fuel_web.deploy_cluster_wait( + cluster_id, + check_services=False + ) + + self.show_step(9) + self.fuel_web.run_ostf( + cluster_id=cluster_id, + should_fail=0, + test_sets=['smoke', 'sanity']) + + self.show_step(10) + TestPluginCheck(self).verify_manila_functionality() + + self.show_step(11) + self.fuel_web.update_nodes( + cluster_id, {'slave-03': ['compute']}) + + self.show_step(12) + self.fuel_web.deploy_cluster_wait( + cluster_id, + check_services=False + ) + self.show_step(13) + self.fuel_web.run_ostf( + cluster_id=cluster_id, + should_fail=0, + test_sets=['smoke', 'sanity']) + + self.show_step(14) + TestPluginCheck(self).verify_manila_functionality()