Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1205660 - ipa-client rpm should require keyutils
ipa-client rpm should require keyutils
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa (Show other bugs)
6.7
Unspecified Unspecified
medium Severity unspecified
: rc
: ---
Assigned To: IPA Maintainers
Namita Soman
:
Depends On: 986848
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-25 08:33 EDT by Martin Kosek
Modified: 2015-07-22 03:39 EDT (History)
7 users (show)

See Also:
Fixed In Version: ipa-3.0.0-45.el6
Doc Type: Bug Fix
Doc Text:
Do not document
Story Points: ---
Clone Of: 986848
Environment:
Last Closed: 2015-07-22 03:39:51 EDT
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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1462 normal SHIPPED_LIVE Moderate: ipa security and bug fix update 2015-07-21 10:14:52 EDT

  None (edit)
Description Martin Kosek 2015-03-25 08:33:03 EDT
+++ This bug was initially created as a clone of Bug #986848 +++

Description of problem:
RHEL6.0 + RHEL6.4 ipa-client packages doesn't install keyctl and ipa-client install will fail like this:

...
Configured /etc/krb5.conf for IPA realm IDM.LVTC.GSNET.CORP
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2323, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2309, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 2086, in install
    delete_persistent_client_session_data(host_principal)
  File "/usr/lib/python2.6/site-packages/ipalib/rpc.py", line 124, in delete_persistent_client_session_data
    kernel_keyring.del_key(keyname)
  File "/usr/lib/python2.6/site-packages/ipapython/kernel_keyring.py", line 99, in del_key
    real_key = get_real_key(key)
  File "/usr/lib/python2.6/site-packages/ipapython/kernel_keyring.py", line 45, in get_real_key
    (stdout, stderr, rc) = run(['keyctl', 'search', KEYRING, KEYTYPE, key], raiseonerr=False)
  File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 295, in run
    close_fds=True, env=env, cwd=cwd)
  File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
...

[root@vmlbcipacl60 ~]# whereis keyctl
keyctl: /usr/share/man/man2/keyctl.2.gz
[root@vmlbcipacl60 ~]# rpm -qf /bin/keyctl
error: file /bin/keyctl: No such file or directory
[root@vmlbcipacl60 ~]# rpm -qa | grep -i keyutils
keyutils-libs-1.4-1.el6.x86_64

Version-Release number of selected component (if applicable):
ipa-client-3.0.0-26.el6_4.2.x86_64.rpm

How reproducible:
Try to enroll a RHEL6.0 client with the latest ipa-client packages

Steps to Reproduce:
1. Install RHEL6.0
2. Install ipa-client from RHEL6.4
3. ipa-client-install will fail

Actual results:
ipa-client-install fails:

...
Configured /etc/krb5.conf for IPA realm IDM.LVTC.GSNET.CORP
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2323, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2309, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 2086, in install
    delete_persistent_client_session_data(host_principal)
  File "/usr/lib/python2.6/site-packages/ipalib/rpc.py", line 124, in delete_persistent_client_session_data
    kernel_keyring.del_key(keyname)
  File "/usr/lib/python2.6/site-packages/ipapython/kernel_keyring.py", line 99, in del_key
    real_key = get_real_key(key)
  File "/usr/lib/python2.6/site-packages/ipapython/kernel_keyring.py", line 45, in get_real_key
    (stdout, stderr, rc) = run(['keyctl', 'search', KEYRING, KEYTYPE, key], raiseonerr=False)
  File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 295, in run
    close_fds=True, env=env, cwd=cwd)
  File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
...

Expected results:
ipa-client-install enroll the client fine

Additional info:
Comment 1 Martin Kosek 2015-03-25 08:33:53 EDT
Related freeipa-users thread:
https://www.redhat.com/archives/freeipa-users/2015-March/msg00729.html

This is a simple fix, we should do it rather sooner than later.
Comment 5 Xiyang Dong 2015-03-30 12:43:37 EDT
Thanks Petr.
Verified on ipa-client-3.0.0-45.el6.x86_64:

[root@idm-qe-03 yum.repos.d]# rpm -e keyutils
error: Failed dependencies:
	keyutils >= 1.4-4 is needed by (installed) nfs-utils-1:1.2.3-58.el6.x86_64
	keyutils is needed by (installed) ipa-python-3.0.0-45.el6.x86_64
Comment 7 errata-xmlrpc 2015-07-22 03:39:51 EDT
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-1462.html

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