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: 117
Build Status: Still Failing
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #115
[Michal Skrivanek] use // in glance URL
Changes for Build #116
[Michal Skrivanek] use // in glance URL
Changes for Build #117
[Michal Skrivanek] use // in glance URL
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED:
basic-suite-master.test-scenarios.002_bootstrap_pytest.test_download_engine_certs
Error Message:
AssertionError: False != True after 180 seconds
Stack Trace:
prefix = <ovirtlago.prefix.OvirtPrefix object at 0x7fe846928590>
@order_by(_TEST_LIST)
def test_download_engine_certs(prefix):
engine_ip = prefix.virt_env.engine_vm().ip()
engine_base_url =
'/ovirt-engine/services/pki-resource?resource=ca-certificate&format='
engine_ca_url = engine_base_url + 'X509-PEM-CA'
engine_ssh_url = engine_base_url + 'OPENSSH-PUBKEY'
# We use an unverified connection, as L0 host cannot resolve
'...engine.lago.local'
conn = http_client.HTTPSConnection(engine_ip,
context=ssl._create_unverified_context())
def _download_file(url, path=None, compare_string=None):
conn.request("GET", url)
resp = conn.getresponse()
if resp.status != 200:
return False
data = resp.read()
if path:
with open(path, 'wb') as outfile:
outfile.write(data)
if compare_string:
assert data == compare_string
return True
testlib.assert_true_within_short(
lambda: _download_file(engine_ca_url, 'engine-ca.pem')
)
# TODO: verify certificate. Either use it, or run:
# 'openssl x509 -in engine-ca.pem -text -noout'
testlib.assert_true_within_short(
lambda: _download_file(engine_ssh_url, 'engine-rsa.pub')
)
# TODO: verify public key. Either use it, or run:
# 'ssh-keygen -l -f engine-rsa.pub'
healthy = b"DB Up!Welcome to Health Status!"
testlib.assert_true_within_short(
lambda:
_download_file('/ovirt-engine/services/health', path=None, compare_string=healthy)
)
../basic-suite-master/test-scenarios/002_bootstrap_pytest.py:1381:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/site-packages/ovirtlago/testlib.py:282: in assert_true_within_short
assert_equals_within_short(func, True, allowed_exceptions)
/usr/lib/python2.7/site-packages/ovirtlago/testlib.py:266: in assert_equals_within_short
func, value, SHORT_TIMEOUT, allowed_exceptions=allowed_exceptions
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function <lambda> at 0x7fe846763140>, value = True, timeout = 180
allowed_exceptions = [], initial_wait = 0
def assert_equals_within(
func, value, timeout, allowed_exceptions=None, initial_wait=10
):
allowed_exceptions = allowed_exceptions or []
with utils.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:
raise AssertionError(
'%s != %s after %s seconds' % (res, value,
timeout)
)
E AssertionError: False != True after 180 seconds
/usr/lib/python2.7/site-packages/ovirtlago/testlib.py:252: AssertionError