Fix test_network_disruptor_main_vip: wait for pcs failure after disruption

This test was failing due to a race condition
When the network disruption occurs, it checked immediately pcs status,
obtaining all pcs resources were running
This validation was performed right after the disruption and some delay
was needed to find some pcs resources down

Change-Id: Ic3ccaf550d9b617be022a2e4adaaf8894956316d
This commit is contained in:
Eduardo Olivares 2020-07-20 22:00:01 +02:00 committed by Pini Komarov
parent afaf06f329
commit e4a03c24cb
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
from __future__ import absolute_import
import re
import time
from oslo_log import log
@ -186,6 +187,8 @@ def reset_controllers_non_main_vip():
def network_disrupt_controller_main_vip():
disrupt_controller_main_vip(disrupt_method=network_disruption)
LOG.info('waiting 60s to avoid race conditions...')
time.sleep(60.0)
def network_undisrupt_controller_main_vip():