Merge "faults instance-ha tests create only 2 vms to not stress the overcloud"

This commit is contained in:
Zuul 2020-06-24 04:36:41 +00:00 committed by Gerrit Code Review
commit c11f06b830
2 changed files with 8 additions and 8 deletions

View File

@ -243,7 +243,7 @@ def check_iha_evacuation(failover_type=None, vm_type=None):
for iteration in range(2):
LOG.info(f'Beign IHA tests iteration {iteration}')
LOG.info('creatr 4 vms')
nova.create_multiple_unique_vms(n_vms=4)
nova.create_multiple_unique_vms(n_vms=2)
compute_host = nova.get_random_compute_with_vms_name()
vms_starting_state_df = nova.get_compute_vms_df(compute_host)
if vm_type == 'shutoff':
@ -282,5 +282,5 @@ def check_iha_evacuation_network_disruption():
check_iha_evacuation(failover_type=network_disruption)
def check_iha_evacuation_hard_reset_shutfoff_inatance():
def check_iha_evacuation_hard_reset_shutoff_instance():
check_iha_evacuation(failover_type=hard_reset_method, vm_type='shutoff')

View File

@ -102,20 +102,20 @@ class DisruptTripleoNodesTest(testtools.TestCase):
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_hard_reset(self):
overcloud_health_checks()
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_hard_reset()
@pacemaker.skip_if_instanceha_not_delpoyed
def test_instanceha_evacuation_network_disruption(self):
overcloud_health_checks()
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_network_disruption()
def test_instanceha_evacuation_hard_reset_shutfoff_inatance(self):
overcloud_health_checks()
cloud_disruptions.check_iha_evacuation_hard_reset_shutfoff_inatance()
def test_instanceha_evacuation_hard_reset_shutoff_instance(self):
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_hard_reset_shutoff_instance()
def test_check_instanceha_evacuation_evac_image_vm(self):
overcloud_health_checks()
overcloud_health_checks(passive_checks_only=True)
cloud_disruptions.check_iha_evacuation_evac_image_vm()