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: 896
Build Status: Still Failing
Triggered By: Started by timer
-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #894
[Andrej Cernek] ost_utils: Remove explicit object inheritance
Changes for Build #895
[Andrej Cernek] ost_utils: Remove explicit object inheritance
Changes for Build #896
[Andrej Cernek] ost_utils: Remove explicit object inheritance
-----------------
Failed Tests:
-----------------
1 tests failed.
FAILED: basic-suite-master.test-scenarios.test_002_bootstrap.test_verify_engine_certs[CA
certificate]
Error Message:
ost_utils.shell.ShellError: Command failed with rc=1. Stdout: Stderr: unable to load
certificate 140280960927552:error:0909006C:PEM routines:get_name:no start
line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
Stack Trace:
key_format = 'X509-PEM-CA'
verification_fn = <function <lambda> at 0x7f7aae4b2d90>, engine_fqdn =
'engine'
engine_download = <function engine_download.<locals>.download at
0x7f7aacadcea0>
@pytest.mark.parametrize("key_format, verification_fn", [
pytest.param(
'X509-PEM-CA',
lambda path: shell.shell(["openssl", "x509",
"-in", path, "-text", "-noout"]),
id="CA certificate"
),
pytest.param(
'OPENSSH-PUBKEY',
lambda path: shell.shell(["ssh-keygen", "-l",
"-f", path]),
id="ssh pubkey"
),
])
@order_by(_TEST_LIST)
def test_verify_engine_certs(key_format, verification_fn, engine_fqdn,
engine_download):
url =
'http://{}/ovirt-engine/services/pki-resource?resource=ca-certificate&format={}'
with http_proxy_disabled(), tempfile.NamedTemporaryFile() as tmp:
engine_download(url.format(engine_fqdn, key_format), tmp.name)
try:
verification_fn(tmp.name)
../basic-suite-master/test-scenarios/test_002_bootstrap.py:292:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../basic-suite-master/test-scenarios/test_002_bootstrap.py:275: in <lambda>
lambda path: shell.shell(["openssl", "x509", "-in",
path, "-text", "-noout"]),
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = ['openssl', 'x509', '-in', '/tmp/tmp_toakfbs',
'-text', '-noout']
bytes_output = False, kwargs = {}
process = <subprocess.Popen object at 0x7f7aacb6fe48>, out = ''
err = 'unable to load certificate\n140280960927552:error:0909006C:PEM
routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED
CERTIFICATE\n'
def shell(args, bytes_output=False, **kwargs):
process = subprocess.Popen(args,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
**kwargs)
out, err = process.communicate()
if not bytes_output:
out = out.decode("utf-8")
err = err.decode("utf-8")
if process.returncode:
raise ShellError(process.returncode, out, err)
E
ost_utils.shell.ShellError: Command failed with rc=1. Stdout:
E
E Stderr:
E unable to load certificate
E 140280960927552:error:0909006C:PEM routines:get_name:no start
line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
../ost_utils/ost_utils/shell.py:49: ShellError