Bug 1156144

Summary: krb5 upstream test t_kdb.py failure
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Kis <pkis>
Component: krb5Assignee: Robbie Harwood <rharwood>
Status: CLOSED ERRATA QA Contact: Patrik Kis <pkis>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dpal
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: krb5-1.13.1-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 05:12:53 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:
Attachments:
Description Flags
patch to fix t_kdb.py none

Description Patrik Kis 2014-10-23 16:20:55 UTC
Description of problem:
The test t_kdb.py from the upstream test suite is failing. The test was introduced in krb5-1.12.2.
I believe the issue is that the test is trying the following command incorrectly:
addprinc -randkey -e aes256-cts,aes128-cts kvnoprinc'
it should be 
addprinc -randkey -e aes256-cts:normal,aes128-cts:normal kvnoprinc'
It is the same also in the newest krb5-1.13.
The proposed fix was attached.

NOTE: the issue might remain hidden because the test is executed only if openldap-servers and openldap-clients packages are installed. If these packages are missing the test silently passes.

Version-Release number of selected component (if applicable):
krb5-1.12.2-8.el7

How reproducible:
always

Steps to Reproduce:
1/ run the upstream testsuite
# make runenv.py
# cd tests
# make check-pytests

... snip ...

PYTHONPATH=../util VALGRIND="" python ./t_keytab.py 
PYTHONPATH=../util VALGRIND="" python ./t_kadmin_acl.py 
PYTHONPATH=../util VALGRIND="" python ./t_kdb.py 
*** Failure: After cpw -keepold, wrong number of keys

See testlog for details, or re-run with -v flag.

Use --debug=NUM to run a command under a debugger.  Use
--stop-after=NUM to stop after a daemon is started in order to
attach to it with a debugger.  Use --help to see other options.
make[1]: *** [check-pytests] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/krb5-1.12.2/src/tests'

Comment 1 Patrik Kis 2014-10-23 16:21:48 UTC
Created attachment 950024 [details]
patch to fix t_kdb.py

Comment 2 Patrik Kis 2015-01-02 09:08:51 UTC
Patch:
https://github.com/krb5/krb5/pull/226

Comment 3 Patrik Kis 2015-04-03 09:02:57 UTC
This should be handled in krb5-1.13.1 by fixing kadmin.
See the details here: https://github.com/krb5/krb5/pull/226.

Comment 5 Roland Mainz 2015-05-17 20:26:11 UTC
Fixed in krb5-1.13.1-2.el7 (well... technically with rebase krb5-1.13.1-0.el7) ...

... marking bug as MODIFIED.

Comment 10 errata-xmlrpc 2015-11-19 05:12:53 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, 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://rhn.redhat.com/errata/RHSA-2015-2154.html