Bug 2070879

Summary: krb5 upstream api tests failed [rhel-8.7.0]
Product: Red Hat Enterprise Linux 8 Reporter: Julien Rische <jrische>
Component: krb5Assignee: Julien Rische <jrische>
Status: CLOSED ERRATA QA Contact: Filip Dvorak <fdvorak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: fdvorak
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: krb5-1.18.2-20.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2053133 Environment:
Last Closed: 2022-11-08 10:45:40 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: 2053133    
Bug Blocks: 2069077    

Description Julien Rische 2022-04-01 09:24:16 UTC
+++ This bug was initially created as a clone of Bug #2053133 +++

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

--- Additional comment from Julien Rische on 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

--- Additional comment from Julien Rische on 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 14 errata-xmlrpc 2022-11-08 10:45:40 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:7696