Project:
https://jenkins.ovirt.org/job/ovirt-system-tests_basic-suite-master_nightly/
Build:
https://jenkins.ovirt.org/job/ovirt-system-tests_basic-suite-master_night...
Build Number: 1220
Build Status: Still Failing
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #1217
[Eitan Raviv] network: force select spm - wait for dc status
Changes for Build #1218
[Eitan Raviv] network: force select spm - wait for dc status
Changes for Build #1219
[Eitan Raviv] network: force select spm - wait for dc status
Changes for Build #1220
[Eitan Raviv] network: force select spm - wait for dc status
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED: basic-suite-master.test-scenarios.test_004_basic_sanity.test_run_vms
Error Message:
AssertionError: False != True after 600 seconds
Stack Trace:
assert_vm_is_alive = <function assert_vm_is_alive.<locals>.is_alive at
0x7f1f8fd837b8>
engine_api = <ovirtsdk4.Connection object at 0x7f1f8fda0898>
management_gw_ip = '192.168.200.1'
@order_by(_TEST_LIST)
def test_run_vms(assert_vm_is_alive, engine_api, management_gw_ip):
engine = engine_api.system_service()
vm_params = types.Vm(
initialization=types.Initialization(
user_name=VM_USER_NAME,
root_password=VM_PASSWORD
)
)
vm_params.initialization.host_name = BACKUP_VM_NAME
backup_vm_service = test_utils.get_vm_service(engine, BACKUP_VM_NAME)
backup_vm_service.start(use_cloud_init=True, vm=vm_params)
vm_params.initialization.host_name = VM2_NAME
vm2_service = test_utils.get_vm_service(engine, VM2_NAME)
vm2_service.start(use_cloud_init=True, vm=vm_params)
# CirrOS cloud-init is different, networking doesn't work since it doesn't
support the format oVirt is using
vm_params.initialization.host_name = VM0_NAME # hostname seems to work, the others
not
vm_params.initialization.dns_search = 'lago.local'
vm_params.initialization.domain = 'lago.local'
vm_params.initialization.dns_servers = management_gw_ip
vm0_service = test_utils.get_vm_service(engine, VM0_NAME)
vm0_service.start(use_cloud_init=True, vm=vm_params)
for vm_name in [VM0_NAME, BACKUP_VM_NAME]:
_verify_vm_state(engine, vm_name, types.VmStatus.UP)
basic-suite-master/test-scenarios/test_004_basic_sanity.py:1089:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
basic-suite-master/test-scenarios/test_004_basic_sanity.py:212: in _verify_vm_state
lambda:
ost_utils/ost_utils/assertions.py:96: in assert_true_within_long
assert_equals_within_long(func, True, allowed_exceptions)
ost_utils/ost_utils/assertions.py:81: in assert_equals_within_long
func, value, LONG_TIMEOUT, allowed_exceptions=allowed_exceptions
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function _verify_vm_state.<locals>.<lambda> at 0x7f1f8fd83d90>
value = True, timeout = 600, allowed_exceptions = [], initial_wait = 0
error_message = 'False != True after 600 seconds'
def assert_equals_within(
func, value, timeout, allowed_exceptions=None, initial_wait=10,
error_message=None
):
allowed_exceptions = allowed_exceptions or []
res = '<no-result-obtained>'
with _EggTimer(timeout) as timer:
while not timer.elapsed():
try:
res = func()
if res == value:
return
except Exception as exc:
if _instance_of_any(exc, allowed_exceptions):
time.sleep(3)
continue
LOGGER.exception("Unhandled exception in %s", func)
raise
if initial_wait == 0:
time.sleep(3)
else:
time.sleep(initial_wait)
initial_wait = 0
try:
if error_message is None:
error_message = '%s != %s after %s seconds' % (res, value,
timeout)
raise AssertionError(error_message)
E
AssertionError: False != True after 600 seconds
ost_utils/ost_utils/assertions.py:59: AssertionError