#5017 Internal error when searching for DNS zones and IPA is installed without DNS server
Closed: Fixed None Opened 7 years ago by dkupka.

Steps to reproduce:
1. # ipa-server-install -a Password123 -p Password123 -r EXAMPLE.COM -U
2. $ echo Password123 | kinit admin
3. $ ipa dnszone-find

Expected:
"ipa: ERROR: DNS is not configured" or "ipa: ERROR: DNS zone not found"

Actual:
ipa: ERROR: an internal error has occurred

from httpd/error_log:

[Tue May 05 08:31:15.978118 2015] [wsgi:error] [pid 10120] ipa: ERROR: non-public: KeyError: ''
[Tue May 05 08:31:15.979246 2015] [wsgi:error] [pid 10120] Traceback (most recent call last):
[Tue May 05 08:31:15.979333 2015] [wsgi:error] [pid 10120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 349, in wsgi_execute
[Tue May 05 08:31:15.979414 2015] [wsgi:error] [pid 10120]     result = self.Command[name](*args, **options)
[Tue May 05 08:31:15.979470 2015] [wsgi:error] [pid 10120]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 439, in __call__
[Tue May 05 08:31:15.979528 2015] [wsgi:error] [pid 10120]     ret = self.run(*args, **options)
[Tue May 05 08:31:15.979579 2015] [wsgi:error] [pid 10120]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 754, in run
[Tue May 05 08:31:15.979645 2015] [wsgi:error] [pid 10120]     return self.execute(*args, **options)
[Tue May 05 08:31:15.979699 2015] [wsgi:error] [pid 10120]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/baseldap.py", line 2001, in execute
[Tue May 05 08:31:15.979782 2015] [wsgi:error] [pid 10120]     self.api.Object[self.obj.parent_object].handle_not_found(*args[:-1])
[Tue May 05 08:31:15.979845 2015] [wsgi:error] [pid 10120]   File "/usr/lib/python2.7/site-packages/ipalib/base.py", line 469, in __getitem__
[Tue May 05 08:31:15.979902 2015] [wsgi:error] [pid 10120]     return self.__map[key]
[Tue May 05 08:31:15.979950 2015] [wsgi:error] [pid 10120] KeyError: ''
[Tue May 05 08:31:15.980253 2015] [wsgi:error] [pid 10120] ipa: INFO: [jsonserver_kerb] admin@EXAMPLE.COM: dnszone_find(None, forward_only=False, all=False, raw=False, version=u'2.114', pkey_only=False): KeyError

Same situation with 'dnsforwardzone-find'.


AI: if regression then set bz to todo

master:

  • 96c2365 DNS: Do not traceback if DNS is not installed

Metadata Update from @dkupka:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.2

5 years ago

Login to comment on this ticket.

Metadata