Bug 1744614

Summary: kdcproxy functionality not working
Product: Red Hat Enterprise Linux 8 Reporter: Kaleem <ksiddiqu>
Component: python-kdcproxyAssignee: Robbie Harwood <rharwood>
Status: CLOSED DUPLICATE QA Contact: anuja <amore>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.1CC: abokovoy, amore, cheimes, rcritten, tscherf
Target Milestone: rcKeywords: Regression, TestBlocker
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-04 13:04:20 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: 1745499    
Bug Blocks: 1738779    

Description Kaleem 2019-08-22 14:18:28 UTC
Description of problem:

Following trackback is seen on IPA master while doing kinit from ipa client using kdcproxy interface.

[Thu Aug 22 19:40:11.085971 2019] [wsgi:error] [pid 15497:tid 139724802635520] [remote 10.65.207.60:52690]     import kdcproxy.codec as codec
[Thu Aug 22 19:40:11.086007 2019] [wsgi:error] [pid 15497:tid 139724802635520] [remote 10.65.207.60:52690] AttributeError: module 'kdcproxy' has no attribute 'codec'
[Thu Aug 22 19:40:32.458335 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692] mod_wsgi (pid=15496): Failed to exec Python script file '/usr/share/ipa/kdcproxy.wsgi'.
[Thu Aug 22 19:40:32.458490 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692] mod_wsgi (pid=15496): Exception occurred processing WSGI script '/usr/share/ipa/kdcproxy.wsgi'.
[Thu Aug 22 19:40:32.458704 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692] Traceback (most recent call last):
[Thu Aug 22 19:40:32.458781 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692]   File "/usr/share/ipa/kdcproxy.wsgi", line 4, in <module>
[Thu Aug 22 19:40:32.458795 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692]     from kdcproxy import application
[Thu Aug 22 19:40:32.458816 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692]   File "/usr/lib/python3.6/site-packages/kdcproxy/__init__.py", line 30, in <module>
[Thu Aug 22 19:40:32.458827 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692]     import kdcproxy.codec as codec
[Thu Aug 22 19:40:32.458864 2019] [wsgi:error] [pid 15496:tid 139724760672000] [remote 10.65.207.60:52692] AttributeError: module 'kdcproxy' has no attribute 'codec'



Version-Release number of selected component (if applicable):
ipa-server-4.8.0-9.module+el8.1.0+4011+fd4be199.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install IPA master and a ipa client
2. Configure KDCproxy on IPA client in /etc/krb5.conf
3. Run kinit command

Actual results:

[root@client ~]# echo xxxxxxx|kinit admin
kinit: Cannot contact any KDC for realm 'TESTRELM.TEST' while getting initial credentials
[root@client ~]# 


Expected results:
Kinit should have been successful.

Additional info:

Comment 1 Kaleem 2019-08-22 14:22:27 UTC
python-kdcproxy version

[root@master ~]# rpm -q python3-kdcproxy
python3-kdcproxy-0.4-3.module+el8.1.0+4011+fd4be199.noarch
[root@master ~]#

Comment 11 Christian Heimes 2019-09-04 12:58:04 UTC
A fix for RHBZ#1745499 has landed in RHEL 8.1.0. I was no longer able to reproduce the bug with updated Python.

Anuja, Kaleem, I suggest to retest KDCProxy and close the bug as duplicate of #1745499.

Comment 12 Kaleem 2019-09-04 13:04:20 UTC
(In reply to Christian Heimes from comment #11)
> A fix for RHBZ#1745499 has landed in RHEL 8.1.0. I was no longer able to
> reproduce the bug with updated Python.
> 
> Anuja, Kaleem, I suggest to retest KDCProxy and close the bug as duplicate
> of #1745499.

KDCProxy test suite retested and its working fine. Closing this as duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1745499

*** This bug has been marked as a duplicate of bug 1745499 ***