Bug 1229430 - [abrt] freeipa-server: ipautil.py:1208:kinit_hostprincipal:StandardError: Error initializing principal ipa-dnskeysyncd/bramha.gaans.in in /etc/ipa/dnssec/ipa-dnskeysyncd.keytab: (-1765328228, 'Cannot contact any KDC for requested realm')
Summary: [abrt] freeipa-server: ipautil.py:1208:kinit_hostprincipal:StandardError: Err...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipa
Version: 21
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: IPA Maintainers
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:dc3f5559cc4f1cfab3a1e66b52a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-08 17:43 UTC by Sambit Gaan
Modified: 2015-10-11 16:02 UTC (History)
7 users (show)

Fixed In Version: freeipa-4.2.2-1.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-11 16:02:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.21 KB, text/plain)
2015-06-08 17:43 UTC, Sambit Gaan
no flags Details
File: environ (208 bytes, text/plain)
2015-06-08 17:43 UTC, Sambit Gaan
no flags Details

Description Sambit Gaan 2015-06-08 17:43:24 UTC
Version-Release number of selected component:
freeipa-server-4.1.4-1.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python /usr/libexec/ipa/ipa-dnskeysyncd
dso_list:       freeipa-python-4.1.4-1.fc21.i686
executable:     /usr/libexec/ipa/ipa-dnskeysyncd
kernel:         3.19.5-200.fc21.i686+PAE
runlevel:       unknown
type:           Python
uid:            978

Truncated backtrace:
ipautil.py:1208:kinit_hostprincipal:StandardError: Error initializing principal ipa-dnskeysyncd/bramha.gaans.in in /etc/ipa/dnssec/ipa-dnskeysyncd.keytab: (-1765328228, 'Cannot contact any KDC for requested realm')

Traceback (most recent call last):
  File "/usr/libexec/ipa/ipa-dnskeysyncd", line 68, in <module>
    ipautil.kinit_hostprincipal(KEYTAB_FB, WORKDIR, PRINCIPAL)
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 1208, in kinit_hostprincipal
    raise StandardError('Error initializing principal %s in %s: %s' % (principal, keytab, str(e)))
StandardError: Error initializing principal ipa-dnskeysyncd/bramha.gaans.in in /etc/ipa/dnssec/ipa-dnskeysyncd.keytab: (-1765328228, 'Cannot contact any KDC for requested realm')

Local variables in innermost frame:
ccachedir: '/tmp'
e: Krb5Error(-1765328228, 'Cannot contact any KDC for requested realm')
princ: <krb5.Principal instance at 0xb6777eac: ipa-dnskeysyncd/bramha.gaans.in>
krbcontext: <krbV.Context instance at 0xb632f0cc>
ccache: <krbV.CCache instance at 0xb66d6f4c>
ccache_file: 'FILE:/tmp/ccache'
keytab: '/etc/ipa/dnssec/ipa-dnskeysyncd.keytab'
ktab: <krbV.Keytab instance at 0xb6471c8c>
principal: 'ipa-dnskeysyncd/bramha.gaans.in'

Comment 1 Sambit Gaan 2015-06-08 17:43:29 UTC
Created attachment 1036449 [details]
File: backtrace

Comment 2 Sambit Gaan 2015-06-08 17:43:30 UTC
Created attachment 1036450 [details]
File: environ

Comment 3 Petr Vobornik 2015-06-10 11:40:39 UTC
KDC could have been down, or there was something wrong with network setup, if the target KDC was on different server, so that KDC could not be contacted. 

This situation might happen. But should be rare because the ipa-dnskeysyncd service failed on it's initialization which should happen shortly after KDC is started(assuming it's started by 'ipactl start')

The wrong thing here is that the daemon fails with a traceback. It should exit more gracefully.

We would need more information if this issue happens regularly to fix the root cause.

Comment 4 Petr Vobornik 2015-06-17 15:27:16 UTC
ipa-dnskeysyncd was meant as a temporary tool which will be replaced soon. Therefore a fix is not planned.

Comment 5 Martin Kosek 2015-06-18 06:49:58 UTC
WONTFIX is a better result I think, given no upstream ticket was opened.

Comment 6 Petr Spacek 2015-06-23 12:20:18 UTC
Apparently this happens a lot so we should fix it:
http://retrace.fedoraproject.org/faf/reports/bthash/d995d4a56728f4aeae7323ee16a7c4e4b842ae01/

Comment 8 Fedora Update System 2015-10-09 13:55:30 UTC
freeipa-4.2.2-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update freeipa'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-4abcc8b937

Comment 9 Fedora Update System 2015-10-11 16:02:29 UTC
freeipa-4.2.2-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


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