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: 1254
Build Status: Still Failing
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #1246
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1247
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1248
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1249
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1250
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1251
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1252
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1253
[Shani Leviim] engine_utils: verify job status by correlation id
Changes for Build #1254
[Shani Leviim] engine_utils: verify job status by correlation id
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED: basic-suite-master.test-scenarios.test_004_basic_sanity.test_hotplug_memory
Error Message:
AssertionError: False != True after 600 seconds
Stack Trace:
engine = <ovirtsdk4.services.SystemService object at 0x7fb723c682e8>
event_id = [2039], timeout = 600
@contextlib.contextmanager
def wait_for_event(engine, event_id, timeout=assertions.LONG_TIMEOUT):
'''
event_id could either be an int - a single
event ID or a list - multiple event IDs
that all will be checked
'''
events = engine.events_service()
last_event = int(events.list(max=2)[0].id)
try:
yield
ost_utils/ost_utils/engine_utils.py:36:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
assert_vm_is_alive = <function assert_vm_is_alive.<locals>.is_alive at
0x7fb723cd4598>
engine_api = <ovirtsdk4.Connection object at 0x7fb723c68c50>
get_vm_libvirt_memory_amount = <function
get_vm_libvirt_memory_amount.<locals>.mem_amount at 0x7fb723cd40d0>
hotplug_mem_amount = 268435456
@order_by(_TEST_LIST)
def test_hotplug_memory(assert_vm_is_alive, engine_api,
get_vm_libvirt_memory_amount, hotplug_mem_amount):
engine = engine_api.system_service()
vm_service = test_utils.get_vm_service(engine, VM0_NAME)
new_memory = vm_service.get().memory + hotplug_mem_amount
with engine_utils.wait_for_event(engine, 2039): # HOT_SET_MEMORY(2,039)
vm_service.update(
vm=types.Vm(
memory=new_memory,
# Need to avoid OOM scenario where ballooning would immediately try to
claim some memory.
# CirrOS is lacking memory onlining rules so the guest memory
doesn't really increase and
# balloon inflation just crashes the guest instead. Balloon gets
inflated because MOM
# does not know that guest size didn't increase and just assumes
it did, and the host
# OST VM is likely under memory pressure, there's not much free
RAM in OST environment.
# Setting minimum guaranteed to new memory size keeps MOM from
inflating balloon.
memory_policy=types.MemoryPolicy(
guaranteed=new_memory,
)
)
)
assert vm_service.get().memory == new_memory
E
AssertionError: assert 100663296 == 369098752
E +100663296
E -369098752
basic-suite-master/test-scenarios/test_004_basic_sanity.py:1423: AssertionError
During handling of the above exception, another exception occurred:
assert_vm_is_alive = <function assert_vm_is_alive.<locals>.is_alive at
0x7fb723cd4598>
engine_api = <ovirtsdk4.Connection object at 0x7fb723c68c50>
get_vm_libvirt_memory_amount = <function
get_vm_libvirt_memory_amount.<locals>.mem_amount at 0x7fb723cd40d0>
hotplug_mem_amount = 268435456
@order_by(_TEST_LIST)
def test_hotplug_memory(assert_vm_is_alive, engine_api,
get_vm_libvirt_memory_amount, hotplug_mem_amount):
engine = engine_api.system_service()
vm_service = test_utils.get_vm_service(engine, VM0_NAME)
new_memory = vm_service.get().memory + hotplug_mem_amount
with engine_utils.wait_for_event(engine, 2039): # HOT_SET_MEMORY(2,039)
vm_service.update(
vm=types.Vm(
memory=new_memory,
# Need to avoid OOM scenario where ballooning would immediately try to
claim some memory.
# CirrOS is lacking memory onlining rules so the guest memory
doesn't really increase and
# balloon inflation just crashes the guest instead. Balloon gets
inflated because MOM
# does not know that guest size didn't increase and just assumes
it did, and the host
# OST VM is likely under memory pressure, there's not much free
RAM in OST environment.
# Setting minimum guaranteed to new memory size keeps MOM from
inflating balloon.
memory_policy=types.MemoryPolicy(
guaranteed=new_memory,
)
)
)
assert vm_service.get().memory == new_memory
basic-suite-master/test-scenarios/test_004_basic_sanity.py:1423:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib64/python3.6/contextlib.py:99: in __exit__
self.gen.throw(type, value, traceback)
ost_utils/ost_utils/engine_utils.py:44: in wait_for_event
timeout
ost_utils/ost_utils/assertions.py:86: in assert_true_within
assert_equals_within(func, True, timeout, allowed_exceptions)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function wait_for_event.<locals>.<lambda> at 0x7fb73d9a60d0>
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