Bug 2053133

Summary: krb5 upstream api tests failed
Product: Red Hat Enterprise Linux 9 Reporter: Filip Dvorak <fdvorak>
Component: krb5Assignee: Julien Rische <jrische>
Status: CLOSED ERRATA QA Contact: Filip Dvorak <fdvorak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: fdvorak, ftrivino
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: krb5-1.19.1-17.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2069077 2070879 (view as bug list) Environment:
Last Closed: 2022-11-15 11:11:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2069077, 2070879    

Description Filip Dvorak 2022-02-10 15:29:20 UTC
Description of problem:
krb5 upstream API tests failed.

Version-Release number of selected component (if applicable):
krb5-server-1.19.1-13.el9.x86_64
RHEL-9.0.0-20220127.4

Steps to Reproduce:
1. rpmbuild -bc $BUILDDIR/SPECS/krb5.spec
2. make check -C /root/rpmbuild/BUILD/krb5-1.19.1/src

Actual results:
...
making check in lib/kadm5/unit-test...
make[4]: Entering directory '/root/rpmbuild/BUILD/krb5-1.19.1/src/lib/kadm5/unit-test'
../../../kadmin/testing/scripts/env-setup.sh  ../../../kadmin/testing/scripts/start_servers
../../../kadmin/testing/scripts/env-setup.sh  ./init-test
../../../kadmin/testing/scripts/env-setup.sh  ./destroy-test
../../../kadmin/testing/scripts/env-setup.sh  ./client-handle-test
../../../kadmin/testing/scripts/env-setup.sh  ./client-setkey-test testkeys admin admin
+ Test 0:
+   enctype 17
+ Test 1:
+   enctype 17
+ Test 2:
+   enctype 17
../../../kadmin/testing/scripts/env-setup.sh runtest --debug --srcdir . --host x86_64-redhat-linux-gnu --tool api RPC=1 API=../../../kadmin/testing/util/kadm5_clnt_tcl \
        KINIT=../../../clients/kinit/kinit \
        KDESTROY=../../../clients/kdestroy/kdestroy \
        KADMIN_LOCAL=../../../kadmin/cli/kadmin.local \
        PRIOCNTL_HACK=0 VALGRIND="" \

WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
Test run by root on Thu Feb 10 14:10:47 2022
Native configuration is x86_64-redhat-linux-gnu

                === api tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
WARNING: Couldn't find tool config file for unix, using default.
WARNING: could not find testsuite; trying ..
Running ./api.2/crte-policy.exp ...
ERROR: Couldn't find library file lib.t.
make[4]: *** [Makefile:758: unit-test-client-body] Error 1
make[4]: Leaving directory '/root/rpmbuild/BUILD/krb5-1.19.1/src/lib/kadm5/unit-test'
make[3]: *** [Makefile:1115: check-recurse] Error 1
make[3]: Leaving directory '/root/rpmbuild/BUILD/krb5-1.19.1/src/lib/kadm5'
make[2]: *** [Makefile:1006: check-recurse] Error 1
make[2]: Leaving directory '/root/rpmbuild/BUILD/krb5-1.19.1/src/lib'
make[1]: *** [Makefile:1553: check-recurse] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/krb5-1.19.1/src'

Expected results:
upstream api tests should pass.

Additional info:
- tests passed with RHEL-9.0.0-20220111.1 but failed in RHEL-9.0.0-20220127.4

Comment 1 Julien Rische 2022-03-03 17:14:28 UTC
Upstream tests are passing if run with dejagnu-1.6.1-13. The 1.6.3 rebase probably introduced some breaking changes:

https://gitlab.com/redhat/centos-stream/rpms/dejagnu/-/commit/8e2e7164870bee8489522cb17b840beb93c6fcab

Comment 3 Julien Rische 2022-03-31 16:57:26 UTC
This problem is due to a newly enforced path naming convention in dejagnu[1].

I opened a C9S PR[2], renaming the kadm5 library's unit tests directory to fix this issue.

[1] https://www.mail-archive.com/bug-dejagnu@gnu.org/msg00366.html
[2] https://gitlab.com/redhat/centos-stream/rpms/krb5/-/merge_requests/14

Comment 4 Julien Rische 2022-04-11 15:06:30 UTC
There is another dejagnu test directory to rename:
https://gitlab.com/redhat/centos-stream/rpms/krb5/-/merge_requests/15

Comment 13 errata-xmlrpc 2022-11-15 11:11:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (krb5 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8271