Bug 1220729 - [Build 623.2] openQA test fails in tpm2_engine_info
Summary: [Build 623.2] openQA test fails in tpm2_engine_info
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Security Team bot
QA Contact: E-mail List
URL: https://openqa.opensuse.org/tests/397...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-01 08:10 UTC by Lubos Kocman
Modified: 2024-03-08 08:43 UTC (History)
2 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Kocman 2024-03-01 08:10:22 UTC
## Observation

I suppose this is related to openSSL 3.X update

2044E9B6FFFF0000:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:crypto/dso/dso_dlfcn.c:118:filename(/usr/lib64/engines-3/tpm2tss.so): /usr/lib64/engines-3/tpm2tss.so: cannot open shared object file: No such file or directory
2044E9B6FFFF0000:error:12800067:DSO support routines:DSO_load:could not load the shared library:crypto/dso/dso_lib.c:152:
2044E9B6FFFF0000:error:13000084:engine routines:dynamic_load:dso not found:crypto/engine/eng_dyn.c:442:
2044E9B6FFFF0000:error:13000074:engine routines:ENGINE_by_id:no such engine:crypto/engine/eng_list.c:433:id=tpm2tss
SCRIPT_FINISHEDJLYr0-1- at /usr/lib/os-autoinst/distribution.pm line 303.
	distribution::script_output(Distribution::Opensuse::Leap::15=HASH(0xaaaaec6a88f0), "openssl engine -t -c tpm2tss", "quiet", 1, "type_command", undef, "timeout", undef, ...) called at /usr/lib/os-autoinst/testapi.pm line 1100
	testapi::script_output("openssl engine -t -c tpm2tss", "timeout", undef, "proceed_on_failure", undef, "type_command", undef, "quiet", ...) called at /usr/lib/os-autoinst/testapi.pm line 1192
	testapi::validate_script_output("openssl engine -t -c tpm2tss", CODE(0xaaaaecbc1038)) called at opensuse/tests/security/tpm2/tpm2_engine/tpm2_engine_info.pm line 25
	tpm2_engine_info::run(tpm2_engine_info=HASH(0xaaaaecbc9ed0)) called at /usr/lib/os-autoinst/basetest.pm line 352
	eval {...} called at /usr/lib/os-autoinst/basetest.pm line 346
	basetest::runtest(tpm2_engine_info=HASH(0xaaaaecbc9ed0)) called at /usr/lib/os-autoinst/autotest.pm line 415
	eval {...} called at /usr/lib/os-autoinst/autotest.pm line 415
	autotest::runalltests() called at /usr/lib/os-autoinst/autotest.pm line 272
	eval {...} called at /usr/lib/os-autoinst/autotest.pm line 272
	autotest::run_all() called at /usr/lib/os-autoinst/autotest.pm line 323
	autotest::__ANON__(Mojo::IOLoop::ReadWriteProcess=HASH(0xaaaaecea05e8)) called at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess.pm line 329
	eval {...} called at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess.pm line 329
	Mojo::IOLoop::ReadWriteProcess::_fork(Mojo::IOLoop::ReadWriteProcess=HASH(0xaaaaecea05e8), CODE(0xaaaaed917700)) called at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess.pm line 492
	Mojo::IOLoop::ReadWriteProcess::start(Mojo::IOLoop::ReadWriteProcess=HASH(0xaaaaecea05e8)) called at /usr/lib/os-autoinst/autotest.pm line 325
	autotest::start_process() called at /usr/lib/os-autoinst/OpenQA/Isotovideo/Runner.pm line 94
	OpenQA::Isotovideo::Runner::start_autotest(OpenQA::Isotovideo::Runner=HASH(0xaaaae592d9f8)) called at /usr/bin/isotovideo line 133
	eval {...} called at /usr/bin/isotovideo line 122

openQA test in scenario opensuse-15.6-DVD-aarch64-security_tpm2@aarch64 fails in
[tpm2_engine_info](https://openqa.opensuse.org/tests/3976064/modules/tpm2_engine_info/steps/2)

## Test suite description



## Reproducible

Fails since (at least) Build [623.2](https://openqa.opensuse.org/tests/3976064) (current job)


## Expected result

Last good: [604.1](https://openqa.opensuse.org/tests/3933283) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=aarch64&distri=opensuse&flavor=DVD&machine=aarch64&test=security_tpm2&version=15.6)
Comment 1 Matthias Gerstner 2024-03-01 10:11:10 UTC
This is about Leap 15.6, right? It gets most of its packages from SLE-15-SP6.

For some reason there exists a new codestream in
SUSE:SLE-15-SP6:GA/tpm2-tss-engine but it doesn't seem to contain any
differences compared to the previous one in
SUSE:SLE-15-SP4:GA/tpm2-tss-engine. Was this forked because of openssl-3?

Looking into the RPM tpm2-tss-engine-1.1.0-150600.7.1.x86_64.rpm from
SUSE:SLE-15-SP6:GA/tpm2-tss-engine I can see that the shared object is
correctly installed in /usr/lib64/engines-3/tpm2tss.so, so I don't see how
this error can occur.

Can you check whether the file exists at the expected place in the test
environment?
Comment 2 Marcus Meissner 2024-03-01 12:07:05 UTC
yes it was forked to be rebuilt with openssl-3.

The latest snapshot for 15.6 might not yet contain this change and try to use the one built with openssl 1.1 still, as these rebuilds are all very new.
Comment 3 Guillaume GARDET 2024-03-08 08:43:21 UTC
This bug seems to be fixed, but we now have https://bugzilla.opensuse.org/show_bug.cgi?id=1207940
as you can see here: https://openqa.opensuse.org/tests/3991226#next_previous