Project:
http://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-master/
Build:
http://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-master/737/
Build Number: 737
Build Status: Failure
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #737
[Eitan Raviv] networking: introduce Node with ssh capabilities
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED:
network-suite-master.tests.ovs.test_ovn_physnet.test_connect_vm_to_external_physnet
Error Message:
test setup failure
Stack Trace:
system = <lib.system.SDKSystemRoot object at 0x7fcd40678e10>
ovs_cluster = <lib.clusterlib.Cluster object at 0x7fcd39fc7190>
default_cluster = <lib.clusterlib.Cluster object at 0x7fcd4502fa50>
default_data_center = <lib.datacenterlib.DataCenter object at 0x7fcd4294aed0>
@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=hostlib.HOST_TIMEOUT_LONG)
with hostlib.change_cluster(host, ovs_cluster):
host.sync_all_networks()
default_data_center.wait_for_up_status()
yield host
network-suite-master/fixtures/host.py:73:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib64/python2.7/contextlib.py:35: in __exit__
self.gen.throw(type, value, traceback)
network-suite-master/lib/hostlib.py:84: in change_cluster
host.change_cluster(original_cluster)
network-suite-master/lib/hostlib.py:137: in change_cluster
self.deactivate()
network-suite-master/lib/hostlib.py:134: in deactivate
self.wait_for_maintenance_status()
network-suite-master/lib/hostlib.py:226: in wait_for_maintenance_status
success_criteria=lambda s: s == HostStatus.MAINTENANCE)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function <lambda> at 0x7fcd3a0f07d0>, exec_func_args = ()
success_criteria = <function <lambda> at 0x7fcd3a085500>
error_criteria = <function <lambda> at 0x7fcd45ba5aa0>, 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
:return: the result of running the exec_func
"""
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 result
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 result
raise Timeout(result)
E Timeout: Last evaluated
result: up
network-suite-master/lib/syncutil.py:104: Timeout