Bug 1146870

Summary: ipa-client-install fails with "KerbTransport instance has no attribute '__conn'" traceback
Product: Red Hat Enterprise Linux 6 Reporter: David Jaša <djasa>
Component: ipaAssignee: Jan Cholasta <jcholast>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: djasa, jcholast, mkosek, pvoborni, rcritten, xdong
Target Milestone: rc   
Target Release: 6.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-3.0.0-43.el6 Doc Type: Bug Fix
Doc Text:
Do not document
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 07:38:45 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:

Description David Jaša 2014-09-26 09:39:28 UTC
Description of problem:
When doing ipa-client-install on RHEL 6.5 host trying to join RHEL 6.5 IPA, I'm getting the traceback below. I'm joining the domain with OTP with this invocation:
ipa-client-install --domain=<domain> -w 123 -N --no-ssh --noac --ca-cert-file /etc/pki/ca-trust/source/anchors/spice.brq.redhat.com.pem --no-krb5-offline-passwords --debug

Version-Release number of selected component (if applicable):
ipa-client-3.0.0-37.el6.x86_64
ipa-server-3.0.0-37.el6.x86_64

How reproducible:
always for me

Steps to Reproduce:
1. add a host in web ui
2. set up otp password
3. try to join the domain with that otp password

Actual results:
getting the traceback below

Expected results:
  * host joins successfully, OR
  * ipa-client-install recovers from error and reverts its change

Additional info:
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2377, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2363, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 2167, in install
    remote_env = api.Command['env'](server=True)['result']
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__
    ret = self.run(*args, **options)
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 1073, in run
    return self.forward(*args, **options)
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 769, in forward
    return self.Backend.xmlclient.forward(self.name, *args, **kw)
  File "/usr/lib/python2.6/site-packages/ipalib/rpc.py", line 728, in forward
    response = command(*xml_wrap(params))
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/site-packages/ipalib/rpc.py", line 475, in request
    self.close()
  File "/usr/lib/python2.6/site-packages/ipalib/rpc.py", line 442, in close
    self._conn.close()
AttributeError: KerbTransport instance has no attribute '_conn'

Comment 1 David Jaša 2014-09-26 09:40:45 UTC
Created attachment 941503 [details]
ipa-client-install full debug log

Comment 3 Jan Cholasta 2014-10-02 09:50:08 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4603

Comment 4 Martin Kosek 2014-10-07 14:25:38 UTC
Jan found out this is a problem in downstream patch, 1011-xmlrpc_response.patch. We should fix in next release it hides the real error behind and makes investigation difficult.

Comment 13 Xiyang Dong 2015-04-06 15:36:38 UTC
Verified on ipa-client-3.0.0-45.el6.x86_64:
Ran regression tests on client test suite ,test passed with no unexpected failure

Comment 15 errata-xmlrpc 2015-07-22 07:38:45 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-1462.html