Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1156144 - krb5 upstream test t_kdb.py failure
krb5 upstream test t_kdb.py failure
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: krb5 (Show other bugs)
7.0
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Robbie Harwood
Patrik Kis
: Patch
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-23 12:20 EDT by Patrik Kis
Modified: 2015-11-19 00:12 EST (History)
1 user (show)

See Also:
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 00:12:53 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to fix t_kdb.py (1.07 KB, patch)
2014-10-23 12:21 EDT, Patrik Kis
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2154 normal SHIPPED_LIVE Moderate: krb5 security, bug fix, and enhancement update 2015-11-19 03:16:22 EST

  None (edit)
Description Patrik Kis 2014-10-23 12:20:55 EDT
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 12:21:48 EDT
Created attachment 950024 [details]
patch to fix t_kdb.py
Comment 2 Patrik Kis 2015-01-02 04:08:51 EST
Patch:
https://github.com/krb5/krb5/pull/226
Comment 3 Patrik Kis 2015-04-03 05:02:57 EDT
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 16:26:11 EDT
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 00:12:53 EST
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

Note You need to log in before you can comment on or make changes to this bug.