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:
parent
afaf06f329
commit
e4a03c24cb
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user