Project:
http://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-4.2/
Build:
http://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-4.2/617/
Build Number: 617
Build Status: Failure
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #617
[Miguel Duarte Barroso] Revert "Repos: add python2-ovsdbapp to the reposync
config"
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED: network-suite-4.2.tests.ovs.test_ovn_physnet.test_connect_vm_to_external_physnet
Error Message:
test setup failure
Stack Trace:
system = <lib.system.SDKSystemRoot object at 0x7f1d200572d0>
ovs_cluster = <lib.clusterlib.Cluster object at 0x7f1d134f03d0>
default_cluster = <lib.clusterlib.Cluster object at 0x7f1d22a8d8d0>
default_data_center = <lib.datacenterlib.DataCenter object at 0x7f1d23ee22d0>
@pytest.fixture(scope='session')
def host_in_ovs_cluster(
system, ovs_cluster, default_cluster, default_data_center):
host_id = default_cluster.host_ids()[0]
host = hostlib.Host(system)
host.import_by_id(host_id)
host.wait_for_up_status(timeout=15 * 60)
with hostlib.change_cluster(host, ovs_cluster):
network-suite-4.2/fixtures/host.py:70:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib64/python2.7/contextlib.py:17: in __enter__
return self.gen.next()
network-suite-4.2/lib/hostlib.py:77: in change_cluster
host.change_cluster(cluster)
network-suite-4.2/lib/hostlib.py:134: in change_cluster
self.deactivate()
network-suite-4.2/lib/hostlib.py:131: in deactivate
self.wait_for_maintenance_status()
network-suite-4.2/lib/hostlib.py:223: in wait_for_maintenance_status
success_criteria=lambda s: s == HostStatus.MAINTENANCE)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function <lambda> at 0x7f1d21526488>, exec_func_args = ()
success_criteria = <function <lambda> at 0x7f1d21526410>
error_criteria = <function <lambda> at 0x7f1d26fb7578>, timeout = 120
def sync(exec_func,
exec_func_args,
success_criteria=lambda result: True,
error_criteria=lambda error: True,
timeout=DEFAULT_TIMEOUT):
"""Sync an operation until it either:
- succeeds (according to the success_criteria specified)
- fails due to timing out (after the specified timeout)
- fails due to a terminal error (according to the error_criteria specified)
A caller may specifiy a success_criteria function that should return:
- False if the sync should continue to retry
- True if the sync should terminate immediately
A caller may also specify an error_criteria function if the sync
should continue to retry when the operation fails with an anticipated
exception. This function will be called back with the exception and
should return:
- False if the sync should continue to retry
- True if the sync should stop and the exception raised back to the caller
By default, both success_criteria and error_criteria return True, causing
all results and all errors to return and raise respectively. The default
timeout is 120 seconds.
:param exec_func: callable
:param exec_func_args: tuple/dict
:param success_criteria: callable
:param error_criteria: callable
:param timeout: int
"""
end_time = _monothonic_time() + timeout
if isinstance(exec_func_args, collections.Mapping):
kwargs = exec_func_args
args = ()
else:
args = exec_func_args
kwargs = {}
try:
result = exec_func(*args, **kwargs)
except Exception as e:
if error_criteria(e):
raise
result = e
else:
if success_criteria(result):
return
while _monothonic_time() < end_time:
time.sleep(3)
try:
result = exec_func(*args, **kwargs)
except Exception as e:
if error_criteria(e):
raise
result = e
else:
if success_criteria(result):
return
raise Timeout(result)
E Timeout: Last evaluated
result: up
network-suite-4.2/lib/syncutil.py:103: Timeout