freeipa/ipaserver
Florence Blanc-Renaud 7364c268eb ipa host-add --ip-address: properly handle NoNameservers
When ipa host-add --ip-address is called but no DNS server is able to answer
for the reverse zone, get_reverse_zone raises a NoNameservers exception.
The exception is not managed by add_records_for_host_validation, and this
leads to the command exiting on failure with an InternalError:
    $ ipa host-add testhost.ipadomain.com --ip-address 172.16.30.22
    ipa: ERROR: an internal error has occurred
A traceback is also logged in httpd error_log.

This commit properly handles the exception, and adds a test.

https://pagure.io/freeipa/issue/7397

Reviewed-By: Christian Heimes <cheimes@redhat.com>
2018-02-12 17:30:52 +01:00
..
advise ipa-advise for smartcards updated 2018-02-07 12:56:41 +01:00
dnssec DNSSEC code cleanup 2018-02-07 17:27:11 +01:00
install Enable and start oddjobd after ipa-restore if it's not running. 2018-02-09 09:44:11 +01:00
plugins ipa host-add --ip-address: properly handle NoNameservers 2018-02-12 17:30:52 +01:00
secrets LGTM: Fix multiple use before assignment 2018-01-09 07:53:28 +01:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
dcerpc_common.py trust: detect and error out when non-AD trust with IPA domain name exists 2017-12-07 21:18:51 +02:00
dcerpc.py trust: detect and error out when non-AD trust with IPA domain name exists 2017-12-07 21:18:51 +02:00
dns_data_management.py DNS update: reduce timeout for CA records 2017-08-30 13:02:59 +02:00
Makefile.am Build: Makefiles for Python packages 2016-11-09 13:08:32 +01:00
p11helper.py py3: softhsm key_id must be bytes 2017-06-01 09:24:24 +02:00
rpcserver.py Fixing translation problems 2018-01-31 16:03:19 +01:00
servroles.py Do not remove the old masters when setting the attribute fails 2017-07-04 14:42:43 +02:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Update to python-ldap 3.0.0 2017-12-06 16:54:04 +01:00
topology.py fix incorrect suffix handling in topology checks 2017-06-05 18:37:37 +02:00