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

Change-Id: I2d95aa595306f0cf3aca071df7ce489a2b435124
This commit is contained in:
pinikomarov 2020-06-24 00:31:32 +03:00
parent 35450e317a
commit 8dd49228c0
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()