InstanceHA skipp ping for shutdown vms test
Change-Id: I72bd209a04274cfdeea53476476cd344175eeb02
This commit is contained in:
parent
de2ff697bd
commit
b01d469786
|
@ -266,6 +266,7 @@ def check_iha_evacuation(failover_type=None, vm_type=None):
|
||||||
evac_vm_stack = tests.test_evacuable_server_creation()
|
evac_vm_stack = tests.test_evacuable_server_creation()
|
||||||
evac_vm_id = nova.get_stack_server_id(evac_vm_stack)
|
evac_vm_id = nova.get_stack_server_id(evac_vm_stack)
|
||||||
org_nova_evac_df = nova.vm_df(evac_vm_id, nova.get_vms_table())
|
org_nova_evac_df = nova.vm_df(evac_vm_id, nova.get_vms_table())
|
||||||
|
if not vm_type == 'shutoff':
|
||||||
nova.check_df_vms_ping(vms_starting_state_df)
|
nova.check_df_vms_ping(vms_starting_state_df)
|
||||||
LOG.info(f'perform a failover on {compute_host}')
|
LOG.info(f'perform a failover on {compute_host}')
|
||||||
evac_failover_compute(compute_host, failover_type=failover_type)
|
evac_failover_compute(compute_host, failover_type=failover_type)
|
||||||
|
@ -285,6 +286,7 @@ def check_iha_evacuation(failover_type=None, vm_type=None):
|
||||||
compute_host=compute_host,
|
compute_host=compute_host,
|
||||||
timeout=600)
|
timeout=600)
|
||||||
LOG.info('check evac is Done')
|
LOG.info('check evac is Done')
|
||||||
|
if not vm_type == 'shutoff':
|
||||||
nova.check_df_vms_ping(vms_starting_state_df)
|
nova.check_df_vms_ping(vms_starting_state_df)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue