diff --git a/system_test/actions/vcenter_actions.py b/system_test/actions/vcenter_actions.py index cd77887fc..d2bbdf130 100644 --- a/system_test/actions/vcenter_actions.py +++ b/system_test/actions/vcenter_actions.py @@ -839,3 +839,9 @@ class VMwareActions(object): private_ips[vm[1]], primary_ctrl_name), 'Ping between VMs failed') + + @deferred_decorator([make_snapshot_if_step_fail]) + @action + def wait_ha_services(self): + """Wait for HA services.""" + self.fuel_web.assert_ha_services_ready(self.cluster_id) diff --git a/system_test/tests/vcenter/test_vcenter_failover.py b/system_test/tests/vcenter/test_vcenter_failover.py index 4259f65a7..cc82012d3 100644 --- a/system_test/tests/vcenter/test_vcenter_failover.py +++ b/system_test/tests/vcenter/test_vcenter_failover.py @@ -60,11 +60,12 @@ class HardResetPrimaryWithVMware(ActionTest, BaseActions, VMwareActions): 'deploy_cluster', 'create_instances', 'hard_reset_primary', + 'wait_ha_services', 'network_check', 'check_up_vips', 'check_vm_connect', 'delete_instances', - 'health_check_sanity_smoke_ha' + 'health_check' ] @@ -110,14 +111,16 @@ class ShutdownPrimaryWithVMware(ActionTest, BaseActions, VMwareActions): 'deploy_cluster', 'create_instances', 'shutdown_primary', + 'wait_ha_services', 'network_check', 'check_up_vips', 'check_vm_connect', 'delete_instances', 'ostf_with_services_fail', 'turn_on_primary', + 'wait_ha_services', 'network_check', - 'health_check_sanity_smoke_ha' + 'health_check' ] @@ -160,11 +163,12 @@ class SafeRebootPrimaryWithVMware(ActionTest, BaseActions, VMwareActions): 'deploy_cluster', 'create_instances', 'safe_reboot_primary', + 'wait_ha_services', 'network_check', 'check_up_vips', 'check_vm_connect', 'delete_instances', - 'health_check_sanity_smoke_ha' + 'health_check' ] @@ -184,13 +188,13 @@ class ShutdownCinderNodeWithVMware(ActionTest, BaseActions, VMwareActions): 7. Deploy the cluster 8. Create instances on KVM and vCenter 9. Run all OSTF tests - 10. Shutdown one of CinderVMDK node + 10. Shutdown one of CinderVMDK node (depends on yaml config) 11. Run vCenter OSTF tests - 12. Power on CinderVMDK node and wait for it to load + 12. Power on CinderVMDK node and wait for it to load (depends on yaml) 13. Run vCenter OSTF tests - 14. Shutdown another CinderVMDK node + 14. Shutdown another CinderVMDK node (depends on yaml config) 15. Run vCenter OSTF tests - 16. Power on CinderVMDK node and wait for it to load + 16. Power on CinderVMDK node and wait for it to load (depends on yaml) 17. Run all OSTF tests Duration 3h 00min @@ -236,7 +240,7 @@ class RebootCinderNodeWithVMware(ActionTest, BaseActions, VMwareActions): 5. Add nodes (depends on yaml config) 6. Configure vmware settings (depends on yaml config) 7. Deploy the cluster - 8. Reboot CinderVMware node. + 8. Reboot CinderVMware node (depends on yaml config) 9. Check CinderVMware services. Duration 3h 00min @@ -345,7 +349,7 @@ class DeployIDSWithVMware(ActionTest, BaseActions, VMwareActions): 8. Deploy the cluster 9. Run OSTF tests (should fail) - Duration 3h 00min + Duration 2h 00min Snapshot vcenter_idatastore """ diff --git a/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_dvs_failover.yaml b/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_dvs_failover.yaml index 271ab9e88..39a4ac417 100644 --- a/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_dvs_failover.yaml +++ b/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_dvs_failover.yaml @@ -18,7 +18,7 @@ template: nova-compute: !include cluster_configs/settings/vmware/nova_compute/2clusters_ctrl.yaml glance: - !include cluster_configs/settings/vmware/vcenter_glance.yaml + enable: false vmware_dvs: !include cluster_configs/settings/vmware/dvs/dvs_main.yaml nodes: diff --git a/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_glance_backend.yaml b/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_glance_backend.yaml index 1b5a9999a..937ef23d3 100644 --- a/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_glance_backend.yaml +++ b/system_test/tests_templates/tests_configs/vcenter_dvs/vcenter_glance_backend.yaml @@ -18,7 +18,7 @@ template: nova-compute: !include cluster_configs/settings/vmware/nova_compute/1cluster_ctrl.yaml glance: - enable: !include cluster_configs/settings/vmware/vcenter_glance.yaml + !include cluster_configs/settings/vmware/vcenter_glance.yaml vmware_dvs: !include cluster_configs/settings/vmware/dvs/dvs_1cluster.yaml nodes: diff --git a/system_test/tests_templates/tests_configs/vcenter_dvs/vmware_roles_local_ds.yaml b/system_test/tests_templates/tests_configs/vcenter_dvs/vmware_roles_local_ds.yaml index caf63cc05..a41b3ea01 100644 --- a/system_test/tests_templates/tests_configs/vcenter_dvs/vmware_roles_local_ds.yaml +++ b/system_test/tests_templates/tests_configs/vcenter_dvs/vmware_roles_local_ds.yaml @@ -18,11 +18,11 @@ template: nova-compute: - cluster: Cluster1 srv_name: srv_cluster1 - datastore: datastore1 + datastore: datastore.* target_node: controllers - cluster: Cluster2 srv_name: srv_cluster2 - datastore: datastore1 + datastore: datastore.* target_node: compute-vmware glance: enable: false