Add retries for Firewall check
Sometimes Firewall check fails due to virtual networks/machines glitches, but from the second try it passes. Add @retry decorator with default properties (try to run check 3 times and sleep for 30s between tries). Change-Id: I51a0532038231c85a6614146e82ad9097fcc5156 Closes-bug: #1378745
This commit is contained in:
parent
c23244dacb
commit
17f89f2f5b
@ -18,6 +18,7 @@ from random import randrange
|
||||
|
||||
from fuelweb_test import logwrap
|
||||
from fuelweb_test import logger
|
||||
from fuelweb_test.helpers.decorators import retry
|
||||
from fuelweb_test.settings import OPENSTACK_RELEASE
|
||||
from fuelweb_test.settings import OPENSTACK_RELEASE_UBUNTU
|
||||
|
||||
@ -82,6 +83,7 @@ class SecurityChecks(object):
|
||||
result['stderr']))
|
||||
return test_port
|
||||
|
||||
@retry()
|
||||
@logwrap
|
||||
def verify_firewall(self, cluster_id):
|
||||
admin_remote = self.environment.d_env.get_admin_remote()
|
||||
|
Loading…
Reference in New Issue
Block a user