Project:
http://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-master/
Build:
http://jenkins.ovirt.org/job/ovirt-system-tests_network-suite-master/662/
Build Number: 662
Build Status: Failure
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #662
[Eitan Raviv] networking: connect NFS to engine over IPv6
-----------------
Failed Tests:
-----------------
19 tests failed.
FAILED:
network-suite-master.tests.test_ipv6_support.test_run_vm_over_ipv6_nfs_storage_domain
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_mac_pools.test_set_mac_pool_duplicate_macs_from_true_to_false_while_dup_exists
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_mac_pools.test_assign_vnic_with_full_mac_pool_capacity_fails
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_mac_pools.test_undo_preview_snapshot_when_mac_used_reassigns_a_new_mac
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_mac_pools.test_mac_pools_in_different_clusters_dont_overlap
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_mac_pools.test_restore_snapshot_with_an_used_mac_implicitly_assigns_new_mac
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_mac_pools.test_move_stateless_vm_mac_to_new_vm_fails
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED: network-suite-master.tests.test_mac_pools.test_move_mac_to_new_vm
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED: network-suite-master.tests.test_qos_configuration.test_setup_net_with_qos
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_required_network.test_required_network_host_non_operational
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_unrestricted_display_network_name.test_run_vm_with_unrestricted_display_network_name
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.test_vm_operations.test_live_vm_migration_using_dedicated_network
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED: network-suite-master.tests.test_vm_operations.test_hot_linking_vnic
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.ovn-provider.test_ovn_provider.test_ovn_provider_create_scenario
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.ovn-provider.test_ovn_provider.test_validate_ovn_provider_connectivity
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.ovn-provider.test_ovn_provider.test_update_network_mtu
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.ovn-provider.test_ovn_provider.test_ovn_provider_cleanup_scenario
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.ovn-provider.test_ovn_provider_integration_with_ovirt.test_connect_vm_to_external_network
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout
FAILED:
network-suite-master.tests.ovs.test_ovn_physnet.test_connect_vm_to_external_physnet
Error Message:
test setup failure
Stack Trace:
fqdn = None, env = <lago.sdk.SDK object at 0x7f64bebb5b90>
artifacts_path =
'/home/jenkins/workspace/ovirt-system-tests_network-suite-master/ovirt-system-tests/exported-artifacts'
@pytest.fixture(scope='session', autouse=True)
def engine(fqdn, env, artifacts_path):
with suite.collect_artifacts(env, artifacts_path, 'pre-tests'):
engine = env.get_vms()[ENGINE_DOMAIN]
ANSWER_FILE_TMP = '/tmp/answer-file'
engine.copy_to(ANSWER_FILE_SRC, ANSWER_FILE_TMP)
engine.ssh(
[
'engine-setup',
'--config-append={}'.format(ANSWER_FILE_TMP),
'--accept-defaults',
]
)
syncutil.sync(exec_func=_get_engine_api,
exec_func_args=(engine,),
success_criteria=lambda api: isinstance(api,
Connection))
network-suite-master/fixtures/engine.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
exec_func = <function _get_engine_api at 0x7f64c1cad6e0>
exec_func_args = (<ovirtlago.virt.EngineVM object at 0x7f64be1f3b10>,)
success_criteria = <function <lambda> at 0x7f64bd738668>
error_criteria = <function <lambda> at 0x7f64c1c8a938>, 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: None
network-suite-master/lib/syncutil.py:104: Timeout